layout tag

76 questions


1 answers
125 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
79 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
88 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
146 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
117 views
0
I want to show you an empty view when the list view is empty.

<RelativeLayout android:id=@+id/LinearLayoutAR android:layout_height=fill_parent android:layout_width=fill_parent> <ListView android:id=@+id/ARListView android:layout_width=fill_parent andr...


1 answers
88 views
0
How do I centralize the button in Relative Layout?

I'd like to print out the button in the center of relative layout What should I do?No matter how much you touch the gravity and orientation, it's useless.

2 years ago

1 answers
68 views
0
When you change the layout and image on Android,

I received the Android project file.I'm not an app developer, but I sometimes made what I needed and used it.I'm using android studio, but the project spewed errors (I can't fix it) I'm downloading ag...

2 years ago

1 answers
165 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
139 views
0
Question about the difference between Android viewPager.addOnPageChangeListener and tabLayout.addOnTabSelectedListener.

In ViewPager, addOnPageChangeListener and What's the difference between addOnTabSelectedListener in TabLayout? Both seem like listeners to tap changes, but I don't know the difference. TabPagerAdapter...


2 answers
107 views
0
Question when passing the value from the main to the fragment.

The main sent a String value to the second screen through the int. On the second screen, three tabs and a viewfager are used, and each tab is made up of fragments.However, when you click a button on t...

« - 4 - »

© 2024 OneMinuteCode. All rights reserved.