What layout is the best to usefor the below image

What layout is the best to use for the below image to design

Tagged:

Answers

  • JarvanJarvan Member, Xamarin Team Xamurai
    edited October 14

    GridLayout is a good choice to achieve this.

    <GridLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"    
            android:rowCount="2"
            android:columnCount="3"
            android:orientation="vertical">
         <TextView
                android:text="Cell 0"
                android:textSize="14dip"
                android:layout_gravity="center"
                android:layout_row="0"
                android:layout_column="0"
                android:layout_rowSpan="2"/>
         <TextView
                android:text="Cell 1"
                android:textSize="14dip"
                android:layout_gravity="center"
                android:layout_row="0"        
                android:layout_column="1"
                android:layout_columnSpan="2" />
         <Button
                android:id="@+id/myButton"
                android:text="@string/button1"        
                android:layout_row="1"
                android:layout_column="1" />
        <Button
                android:id="@+id/myButton"
                android:text="@string/button2"        
                android:layout_row="1"
                android:layout_column="2" />
    </GridLayout>
    
Sign In or Register to comment.