Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've written a widget for this: <a href="http://code.google.com/p/android-flowtextview/" rel="noreferrer">http://code.google.com/p/android-flowtextview/</a></p> <p><img src="https://i.stack.imgur.com/COjmK.png" alt="enter image description here"></p> <p>This widget extends (and therefore behaves like) a RelativeLayout so you can add child views. The class exposes a setText() method which allows you to set the view's text (plain or spannable) and then you call invalidate() to render the text. The text will fill in any space left by the child views.</p> <p>Example usage:</p> <pre><code> &lt;com.pagesuite.flowtext.FlowTextView android:id="@+id/tv" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:padding="10dip" android:src="@drawable/android" /&gt; &lt;ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_marginTop="400dip" android:padding="10dip" android:src="@drawable/android2" /&gt; &lt;/com.pagesuite.flowtext.FlowTextView&gt; </code></pre> <p>Then in your code:</p> <pre><code>tv = (FlowTextView) findViewById(R.id.tv); Spanned spannable = Html.fromHtml("&lt;html ... &lt;/html&gt;"); tv.setText(spannable); // using html tv.setText("my string"); // using plain text tv.invalidate(); // call this to render the text </code></pre> <p>Always happy to assist if you have any problems using this, find my email on my profile</p>
    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.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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