Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Use the code below for your desired layout:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#DADADA" &gt; &lt;RelativeLayout android:id="@+id/ItemMainContainer" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="5dp" android:padding="5dp" &gt; &lt;ImageView android:id="@+id/Icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/image" /&gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_toRightOf="@id/Icon" android:orientation="vertical" &gt; &lt;TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Test title" /&gt; &lt;TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Details" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; &lt;View android:id="@+id/HorizontalSeparator" android:layout_width="match_parent" android:layout_height="1dp" android:layout_below="@id/ItemMainContainer" android:layout_margin="5dp" android:background="#CCCCCC" /&gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/HorizontalSeparator" android:layout_margin="2dp" &gt; &lt;TextView android:id="@+id/Button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_margin="5dp" android:clickable="true" android:drawableLeft="@drawable/delete" android:gravity="center" android:paddingLeft="15dp" android:paddingRight="15dp" android:text="Button2" /&gt; &lt;View android:id="@+id/Separator" android:layout_width="1dp" android:layout_height="27dp" android:layout_toLeftOf="@id/Button2" android:background="#CCCCCC" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5dp" android:layout_toLeftOf="@id/Separator" android:clickable="true" android:drawableLeft="@drawable/delete" android:gravity="center" android:paddingLeft="15dp" android:paddingRight="15dp" android:text="Button1" /&gt; &lt;/RelativeLayout&gt; &lt;/RelativeLayout&gt; </code></pre> <p>I've also attached a screenshot of the result. <img src="https://i.stack.imgur.com/Hzi53.png" alt="screenshot"></p> <p>Change the assets accordingly.</p>
 

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