Reputation: 1401
How I can arrange my android UI that contains 3 Image buttons in the below given format. I am new to android environment and my knowledge in the technology is zero. Please suggest me the best method to place the Image button in the below given format.
Upvotes: 0
Views: 54
Reputation: 2943
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageButton
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal">
<ImageButton
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
<ImageButton
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</LinearLayout>
Upvotes: 2