LinearLayout の上部に 1 つの画像を、LinearLayout の下部に 1 つの画像を配置しようとしています。
しかし、私が試したすべてのことの後、別の画像レイアウトの下に 1 つの画像レイアウトしか取得できません。上に1つ、下に1つ揃えたい。
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/bg1"
android:layout_gravity="top" />
<ImageView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/bg2"
android:layout_gravity="bottom" />
</LinearLayout>
RelativeLayout (メイン コンテナー) と layout_alignParentBottom (2 番目のイメージ) を使用してみましたが、それでも問題は解決しません。
ご意見ありがとうございます。