Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It is best to use a TableLayout when you have items you want across from one another. I am sure others have a favorite way, but this is mine. </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" android:background="#000044"&gt; &lt;TableRow&gt; &lt;TextView android:text="Name:" android:width ="120px" /&gt; &lt;EditText android:id="@+id/someUserName" android:width="200px" /&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;TextView android:text="Phone:" /&gt; &lt;EditText android:id="@+id/somePhone" /&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;TextView android:text="Address:" /&gt; &lt;EditText android:id="@+id/someAddress" /&gt; &lt;/TableRow&gt; &lt;TableRow&gt; &lt;Button android:id="@+id/buttonToClick" android:text="Go Do Something Cool" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre> <p>If you want all three items in one row do this</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent" android:background="#000044"&gt; &lt;TableRow&gt; &lt;TextView android:text="Call Number" android:paddingRight="50px" /&gt; &lt;EditText android:id="@+id/someNumber" android:width ="120px" android:paddingLeft="10px" /&gt; &lt;Button android:id="@+id/buttonToClick" android:text="Call" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; </code></pre>
    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.
    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