Top "Android-linearlayout" questions

LinearLayout is one of the basic layouts in Android.

android layout margins with percentage

I want to set margins by percentage.. I have 4 imageviews in a linearlayout and want to set default left,right,…

android android-linearlayout
Is a RelativeLayout more expensive than a LinearLayout?

I've always been using RelativeLayout everytime I needed a View container, because of it's flexibility, even if I just wanted …

android performance android-linearlayout android-relativelayout
Scrollable layout in Android

I have a registration form in a LinearLayout as shown below: When emulator screen is in it's default position it …

android forms android-linearlayout
LinearLayout, RelativeLayout, etc. margins do not work as expected

Margins in group layouts do not seem to work. For example, <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:…

android margin android-linearlayout
How to change the color of the Progress Bar in Android?- (I tried one way,and it isn't working)

I added a progress bar to my activity using the following code: <LinearLayout android:id="@+id/linlaHeaderProgress" android:layout_…

android xml progress-bar android-linearlayout android-drawable
How to group RadioButton from different LinearLayouts?

I was wondering if is possible to group each single RadioButton in a unique RadioGroup maintaining the same structure. My …

android radio-button android-linearlayout radio-group
How to use getResource.getIdentifier() to get Layout?

I have a question,everyone. I want to use getResource.getIdentifier() to get my layout element in XML (layout/xxx.…

android user-interface android-linearlayout
How to programmatically add multiple LinearLayouts into one view and then add to ViewFlipper?

I hope question title gives you a good description of the problem. I want to create this XML, but programatically (…

android layout android-linearlayout viewflipper
How to create a custom View's layout programmatically?

In an Activity, you can create a LinearLayout programmatically in the following way: public void onCreate(Bundle savedInstanceState) { super.onCreate(…

android android-layout android-linearlayout android-view android-custom-view
How to Correctly Extend LinearLayout to Create a Custom View

I have some "card", which is a simple LinearLayout with a TextView inside <LinearLayout xmlns:android="http://schemas.android.…

android android-layout android-fragments android-linearlayout android-context