Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This will give you that exact layout (I used <code>ImageButton</code>s in this layout)</p> <p>I added the scroll view so that the menu will scroll on very small screens. You can remove that if you want.</p> <pre><code> &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="10dp" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:weightSum="2" &gt; &lt;ImageButton android:id="@+id/id1" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:layout_weight="1" android:background="@null" android:src="@drawable/icon" /&gt; &lt;ImageButton android:id="@+id/id2" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_weight="1" android:background="@null" android:src="@drawable/icon" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" android:weightSum="2" &gt; &lt;ImageButton android:id="@+id/id3" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:layout_weight="1" android:background="@null" android:src="@drawable/icon" /&gt; &lt;ImageButton android:id="@+id/id4" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:layout_weight="1" android:background="@null" android:src="@drawable/icon" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" android:weightSum="2" &gt; &lt;ImageButton android:id="@+id/id5" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_weight="1" android:background="@null" android:src="@drawable/icon" /&gt; &lt;ImageButton android:id="@+id/id6" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_weight="1" android:background="@null" android:src="@drawable/icon" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>Or you can just use a <code>TableLayout</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload