Top "Android-linearlayout" questions

LinearLayout is one of the basic layouts in Android.

Android - Set Layout_Gravity programmatically for LinearLayout

I've got the following problem: I implemented a HorizontalScrollView which contains in one case a LinearLayout and an ImageView. In …

java android position android-linearlayout layout-gravity
How to change color of drawable shapes in android

I am developing small android application in which I set drawable resource as background for linear layout. Now what I …

android background drawable android-linearlayout
Set two buttons to same width regardless of screen size?

Ok, i have two buttons in linear layout: <LinearLayout android:id="@+id/linearLayout1" android:layout_height="wrap_content" android:…

android button android-linearlayout
ScrollView not scrolling at all

I can't make a ScrollView properly scrolling. It always cut off the content on the bottom, as if it were …

android scroll android-linearlayout android-scrollview
How do I add scrollbars to a LinearLayout in Android?

How do I add scrollbars to a view in Android? I tried by adding android:scrollbars:"vertical" to the LinearLayout …

android scrollbar android-linearlayout
Adding a view to a LinearLayout at a specified position

I have the following main.xml file with a LinearLayout <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="…

android android-linearlayout
how to set max Width for a Layout

After a lot of googling I'm unable to find a solution to this problem. I have this layout: <LinearLayout …

android android-layout android-linearlayout
How to specify spacing between elements of LinearLayout only once?

I recently ran into a problem again that I already had several times in the last years. LinearLayout is a …

android android-layout android-widget android-linearlayout
TextView Ellipsize (...) not working

I want to have a single lined TextView to show up 3 dots at the end when the text is longer …

android android-layout android-linearlayout textview
put space between android buttons

<Button android:id="@+id/o_pharmacy" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawableLeft="@drawable/…

android button android-linearlayout