I would like to align my buttons on the bottom of my linearlayout (on the same level). I use android:layout_gravity="bottom" but it doesn't work...
<LinearLayout
android:id="@+id/linearalyout1"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_below="@+id/gridView"
>
<Button
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="100dp"
android:text="Button 1"
android:layout_gravity="bottom"/>
<Button
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="40dp"
android:text="Button 2"
android:layout_gravity="bottom"/>
<Button
android:layout_width="0dip"
android:layout_weight="1"
android:layout_height="50dp"
android:text="Button 3"
android:layout_gravity="bottom"/>
</LinearLayout>
Here is the output : image Thanks for the help !