LinearLayoutの中のボタンをbottomに表示させる

androidのlayoutを理解してないまま、gravityとかでやってみたが、 だめだった。

結局、開けたいスペースにSpaceを入れて高さがいっぱいまで設定したらうまくいった。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <!-- Other views -->
    <Space
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"/>

    <!-- Target view below -->
    <View
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

</LinearLayout>