Top "Android-linearlayout" questions

LinearLayout is one of the basic layouts in Android.

Does changing the background also change the padding of a LinearLayout?

I have the following LinearLayout. What I don't understand is if I set the background to another image, the padding …

android background padding android-linearlayout
android:gravity="top" doesn't align child view to top, but "center" aligns to center?

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_…

android android-linearlayout vertical-alignment gravity layout-gravity
Need help centering an EditText in a Linear Layout

I'm trying to center an edittext vertically and horizontally in a linear layout, but it is not working. Very simple …

android android-edittext android-linearlayout gravity
Capture onScroll event in Android ScrollView

Simple scenario - ScrollView hosting a single LinearLayout which has several children - the preferred pattern to allow a scroll …

android scrollview android-linearlayout onscrolllistener
Linearlayout programmatically - How to set up a divider?

I am creating TextViews in LinearLayout programmatically and I would like to separate them with a divider (just a simple …

android android-linearlayout divider
Anyway to programmatically animate layout weight property of linear layout

I have two views in a linear layout, I programmatically change their layout_weight property. Is there a way I …

android android-layout android-linearlayout android-animation
View.OnTouchListener() does not work on parent layout

I've set a View.OnTouchListener on a parent layout, but it doesn't appear to work. Here is the XML for …

android android-layout android-listview android-linearlayout android-gesture
passing layout_weight reference from dimensions (dimens)

I need to set different layout weights for different screen size devices and I want to pass the values from …

android android-layout android-linearlayout
LinearLayout doesn't fill the parent

LinearLayout doesn't fill the parent. I need to fill all elements by width. Here is a photo that is showing …

android android-linearlayout fill-parent
Change the color of divider in LinearLayout

May I know how I can change the color of divider in LinearLayout? <LinearLayout android:layout_width="match_parent" …

android android-linearlayout nine-patch