How to define a textview surrounded by two images?
<p>The textview should fill the space left by the images:</p>

<pre><code>[imageview 40px, aligned left][textview][imageview 40px, aligned right]
</code></pre>

<p>This is my code:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" &gt;

    &lt;ImageView
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:src="@drawable/indicator_code_lock_point_area_green_holo"
        android:tag="heart" /&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingBottom="8dp"
        android:paddingTop="8dp"
        android:text="Shakespeare was a respected poet and playwright in his own day, but his reputation did not rise to its present heights until the 19th century." /&gt;

    &lt;ImageView
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:src="@drawable/indicator_code_lock_point_area_green_holo"
        android:tag="heart" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>As you can see the text takes over the image on the right. </p>
