I need to do an layout in which 4 images are shown in a box in different sizes using XML.
The box is a linearLayout with a fixed height 300dp and fill_parent in the width. It is not a Requirement to do this using a LinearLayout.
I tried to do it using weights and weightsum, but there was no success.
<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>