Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can also use Linear Layout. But i suggest you use Relative layout. Modify the below according to your needs</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;TextView android:id="@+id/toptext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:text="33%" android:textSize="24sp" /&gt; &lt;TextView android:id="@+id/bottomtext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/toptext" // place textview below toptext android:singleLine="true" android:text="Completed" android:textSize="10dp" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p><img src="https://i.stack.imgur.com/NdmWI.png" alt="enter image description here"></p> <p>Edit:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:padding="6dip"&gt; &lt;TextView android:id="@+id/deckno" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" android:text="Deck 1" android:textSize="24dp" /&gt; &lt;RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="40dp" &gt; &lt;TextView android:id="@+id/toptext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:text="33%" android:textSize="24sp" /&gt; &lt;TextView android:id="@+id/bottomtext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/toptext" android:singleLine="true" android:text="Completed" android:textSize="10dp" /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p><img src="https://i.stack.imgur.com/uCMou.png" alt="enter image description here"></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.
 

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