Note that there are some explanatory texts on larger screens.

plurals
  1. POHow i can make this layout (buttons with text & icons)
    primarykey
    data
    text
    <p>I try to achieve something like this:</p> <p><img src="https://i.stack.imgur.com/q3wIH.jpg" alt="enter image description here"></p> <p>My code so far is :</p> <pre><code> &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;Button android:id="@+id/btemail" android:layout_width="130dp" android:layout_height="130dp" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_marginBottom="45dp" android:layout_marginLeft="34dp" android:drawableTop="@drawable/mail" android:text="E-mail" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;Button android:id="@+id/btcharts" android:layout_width="130dp" android:layout_height="130dp" android:layout_above="@+id/btemail" android:layout_alignLeft="@+id/btemail" android:background="@android:color/transparent" android:drawableTop="@drawable/chart" android:drawablePadding="-35dp" android:text="Charts" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;Button android:id="@+id/bthistory" android:layout_width="130dp" android:layout_height="130dp" android:layout_alignBaseline="@+id/btemail" android:layout_alignBottom="@+id/btemail" android:layout_toRightOf="@+id/btemail" android:drawableTop="@drawable/list" android:text="History" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;Button android:id="@+id/btimport" android:layout_width="130dp" android:layout_height="130dp" android:layout_alignLeft="@+id/bthistory" android:layout_alignTop="@+id/btcharts" android:drawableTop="@drawable/add" android:text="New Measurement" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>My view is this:</p> <p><img src="https://i.stack.imgur.com/zGHIt.png" alt="enter image description here"></p> <p>Can this be done with relative view only or should i use gridview?</p> <p>If i set android:layout_height="130dp" but the icons has different size for diffrent screens "50x50 66x66 98x98 130x130".Will be a problem for diffrent screens? Is there a way to achieve it dynamically??</p> <p>How to put the icon center vertical and horizontal of the chart button????Because now it is a little more up of the center..</p>
    singulars
    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.
    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