Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>NOTE</strong>: I've been advised that this answer is wrong, but it does highlight an issue in the layout simulator parser. In that light, I'm going to leave this answer in-tact to document the flaw.</p> <hr> <p>You accdententally added <code>@+id/TextView2</code> to the layout below.</p> <pre><code>android:layout_below="@+id/textView2" </code></pre> <p>Try this instead to reference the concrete id, and you'll need to add sizing parameters</p> <pre><code>&lt;TextView android:id="@+id/thirdLine" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/textView2" android:text="@string/state2" android:textSize="16sp" /&gt; </code></pre> <p>This works with only these changes in my android layout simulator, but you might need to move the definition <code>textView2</code> to be above where it's referenced.</p> <p>Here's the file as it works in my layout builder:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:padding="6dip" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="asdf" android:textSize="16sp" /&gt; &lt;TextView android:id="@+id/secondLine" android:layout_width="fill_parent" android:layout_height="26dip" android:layout_below="@id/textView1" android:ellipsize="marquee" android:singleLine="true" android:text="fdsa" android:textSize="12sp" /&gt; &lt;TextView android:id="@+id/thirdLine" android:layout_below="@id/textView2" android:text="asdffdsa" android:textSize="16sp" /&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:text="string/sayer2" android:textSize="16sp" /&gt; &lt;/RelativeLayout&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. 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