Note that there are some explanatory texts on larger screens.

plurals
  1. POTextview overflow
    text
    copied!<p>I have a layout which has and ImageView to the left, and TextView to the right:</p> <pre><code>&lt;ImageView android:src="@drawable/alert" android:id="@+id/articleStoryImage" android:layout_below="@+id/articleStorySubTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10sp" /&gt; &lt;TextView android:id="@+id/articleStory" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/articleStorySubTitle" android:layout_toRightOf="@+id/articleStoryImage" android:gravity="right" android:inputType="textMultiLine" android:text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" android:ellipsize="end" android:layout_marginTop="10sp" android:textSize="11sp" android:textColor="#000000" /&gt; </code></pre> <p>What I'm trying to do, is that the TextView text would start to the right of the ImageView, but would continue below the ImageView. You can call it some kind of overflow.</p> <p>How can I do that?</p> <p>Thanks.</p> <p>EDITED: FULL XML:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FFFFFF" android:orientation="horizontal" &gt; &lt;TextView android:id="@+id/articleStoryTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbb" android:typeface="sans" android:gravity="right" android:ellipsize="end" android:singleLine="false" android:inputType="textMultiLine" android:textSize="25sp" android:textColor="#DBA118" android:textStyle="bold" /&gt; &lt;TextView android:id="@+id/articleStorySubTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/articleStoryTitle" android:gravity="right" android:inputType="textMultiLine" android:text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbb" android:ellipsize="end" android:layout_marginTop="10sp" android:textSize="12sp" android:textColor="#000000" android:textStyle="bold" /&gt; &lt;ImageView android:src="@drawable/alert" android:id="@+id/articleStoryImage" android:layout_below="@+id/articleStorySubTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10sp" /&gt; &lt;TextView android:id="@+id/articleStory" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/articleStorySubTitle" android:layout_toRightOf="@+id/articleStoryImage" android:gravity="right" android:inputType="textMultiLine" android:text="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" android:ellipsize="end" android:layout_marginTop="10sp" android:textSize="11sp" android:textColor="#000000" /&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