Reputation: 157
I am new to android and need some help creating xml code which reproduces the layout seen in this picture:
I would show what I have attempted so far but I just erased my entire xml file in frustration.
Thank you in advance!
Upvotes: 1
Views: 189
Reputation: 708
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:weightSum="5"
android:orientation="horizontal">
<ImageView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:weight="4"/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:weight="1"
android:orientation="vertical">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
Upvotes: 0
Reputation: 8304
<LinearLayout
... width=fill_parent, height=fill_parent
... weightSum=5
... orientation=horizontal>
<LinearLayout
... width=0dip, height=fill_parent
... weight=4/>
<LinearLayout
... width=0dip, height=fill_parent
... weight=1/>
</LinearLayout>
Upvotes: 2