Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>i think you can achieve this by <code>layout_weight</code> parameter of <code>EditText</code>s like below</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/relativeLayout12" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#909090" android:padding="10dp" &gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:layout_marginTop="10dp" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Student ID" android:textColor="#000000" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" android:paddingLeft="5dp" android:paddingRight="5dp" android:text=":" android:textColor="#000000" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="6" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Name" android:textColor="#000000" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" android:paddingLeft="5dp" android:paddingRight="5dp" android:text=":" android:textColor="#000000" /&gt; &lt;EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Class" android:textColor="#000000" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" android:paddingLeft="5dp" android:paddingRight="5dp" android:text=":" android:textColor="#000000" /&gt; &lt;EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" &gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Address" android:textColor="#000000" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="left" android:paddingLeft="5dp" android:paddingRight="5dp" android:text=":" android:textColor="#000000" /&gt; &lt;EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre> <p><strong>EDIT</strong></p> <p>This is the outcome</p> <p><img src="https://i.stack.imgur.com/id8Eo.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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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