Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble understanding Relative Layout
    text
    copied!<p>I do not seem to be able to figure out how to do something simple with Android Relative Layout. The html equivalent would be something like this ...</p> <pre><code>&lt;table&gt; &lt;tr&gt;&lt;td colspan=3&gt;&lt;input type="text"&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;input type="text" size=2&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" size=2&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" size=2&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; </code></pre> <p>... have tried this in my layout xml file ...</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".CreateBookmarksActivity" &gt; &lt;EditText android:id="@+id/editTextBookmarkTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_marginLeft="36dp" android:ems="10" &gt; &lt;/EditText&gt; &lt;EditText android:id="@+id/editTextHH" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/editTextBookmarkTitle" android:layout_toLeftOf="@+id/editTextMM" android:ems="10" android:inputType="number" &gt; &lt;/EditText&gt; &lt;EditText android:id="@+id/editTextMM" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/editTextBookmarkTitle" android:layout_toRightOf="@+id/editTextHH" android:inputType="number" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>... but it just looks like a jumble of garbage.</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