Note that there are some explanatory texts on larger screens.

plurals
  1. POAdd another textview under the previous textview as a second textview
    text
    copied!<p>guys I tried to add another textview but when I tried the new textview has been placed on the previous textview how can I make the second textview goes down as a new second text view</p> <p>This is my code I hope you can help me</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:layout_alignParentLeft="true" android:gravity="center_vertical" android:text="@string/state1" android:textSize="16sp" /&gt; &lt;TextView android:id="@+id/secondLine" android:layout_width="fill_parent" android:layout_height="26dip" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_below="@id/textView1" android:ellipsize="marquee" android:singleLine="true" android:text="@string/sayer1" android:textSize="12sp" /&gt; &lt;TextView android:id="@+id/thirdLine" android:layout_width="fill_parent" android:layout_height="26dip" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_below="@id/textView2" android:ellipsize="marquee" android:singleLine="true" android:text="@string/sayer2" android:textSize="12sp" /&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:gravity="center_vertical" android:text="@string/state2" android:textSize="16sp" /&gt; &lt;/RelativeLayout&gt; </code></pre>
 

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