android-layout tag

35 questions


1 answers
112 views
0
How do I set the drawableLeft on the Android button with the code?

I make buttons dynamically. First, I set the style to xml like below, but I want to transfer it to the code.<Button android:id=@+id/buttonIdDoesntMatter android:layout_height=wrap_content android:l...


1 answers
71 views
0
Can I include subfolders in the Android layout folder?

Until now, storing all layout files in the layout folder has been easy to manage a small project.I feel the need for subfolders when the project is heavy and growing. For example, layout-- -- layout_p...

2 years ago

1 answers
79 views
0
How do I apply layout_gravity as a code?

How do I apply layout_gravity from button to code? I ran the example I foundOnly NullPointer errors appear.Button MyButton = new Button(this); LinearLayout.LayoutParams lllp=(LinearLayout.LayoutParams...

2 years ago

1 answers
138 views
0
How to round corners of a list view on Android

I want to make the corners of the list round, what can I do?


1 answers
151 views
0
To align views at the bottom of the screen

First of all, this is the layout code I wrote: <?xml version=1.0 encoding=utf-8?><LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:la...


1 answers
107 views
0
Can I make Dialog without a title on Android?

On Android dialog = new Dialog(this);dialog.setContentView(R.layout.my_dialog);I'm going to make a custom dialog like this. It works well except for the title being printed out. Even if you take out t...


1 answers
71 views
0
Can I set the interval between each item in the list in the list view on Android?

I used marginBottom to keep a distance between items in the list view. There hasn't been much change.How do I keep each item at a distance?<LinearLayoutandroid:id=@+id/alarm_occurencesandroid:layou...


1 answers
79 views
0
Android: Meaning of layout_weight

How do I write the android:layout_weight property?


1 answers
130 views
0
How to Remove Title Bar from Activity XML

I want to hide the title bar from the activity. I applied style to all activitiesIf you use @android:style/theme.NoTitleBar, the title bar disappearsI can't use that. Is there any other way?


1 answers
75 views
0
How to create a border in a text view

Is it possible to draw a border around the text view?

« - 3 - »

© 2024 OneMinuteCode. All rights reserved.