There is my code :
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_home"
android:orientation="vertical"
tools:context=".HomeActivity" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.30"
android:gravity="center" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.70"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/llayBtnUp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center" >
<ImageView
android:id="@+id/btntest"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:src="@drawable/fa" />
<ImageView
android:id="@+id/btntest1"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:src="@drawable/fas" />
<ImageView
android:id="@+id/btntest2"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:src="@drawable/fas" />
</LinearLayout>
<LinearLayout
android:id="@+id/llayBtnDown"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center" >
<ImageView
android:id="@+id/btntest3"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:src="@drawable/fas" />
<ImageView
android:id="@+id/btntest4"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:src="@drawable/fa" />
<ImageView
android:id="@+id/tset5"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:src="@drawable/fsa" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:id"@+id/llBot"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_gravity="bottom" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
What I want is that the last LinearLayout (with the id "llBot") touch the bottom of his parent.
So I've tried :
android:layout_gravity="bottom"
But still; it has no effect. My LinearLayout still touch the previous Linearlayout.
Thx !