XML を使用して、4 つの画像を異なるサイズのボックスに表示するレイアウトを作成する必要があります。
ボックスは、高さが300dpに固定され、幅がfill_parentのlinearLayoutです。LinearLayout を使用してこれを行うことは必須ではありません。
weights と weightsum を使用して実行しようとしましたが、成功しませんでした。
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="300dp"
android:layout_margin="10dp" >
<ImageView
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1"
android:src="@drawable/image1" />
<ImageView
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="1"
android:src="@drawable/image2" />
<ImageView
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="2"
android:src="@drawable/image3" />
<ImageView
android:layout_width="0dp"
android:layout_height="fill_parent"
android:layout_weight="2"
android:src="@drawable/image4" />
</LinearLayout>