How to specify a LinearLayout to either wrap_content if it exceeds certain width
<p>I have want to layout an ImageView and then follow by a LinearLayout (to the right of it).</p>

<pre><code>&lt;LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"&gt;

    &lt;ImageView android:id="@+id/icon" android:layout_width="20px"
        android:layout_height="20px" /&gt;
    &lt;RelativeLayout android:id="@+id/side" android:layout_width="fill_parent" android:layout_weight="1" android:layout_width="????"&gt; 
          // some children here
     &lt;/RelativeLayout&gt;
 &lt;/LinearLayout&gt;
</code></pre>

<p>How can I configure my side panel so that it either use 'wrap_content' if the height is > than the image view? if not, use the height of the image i.e. 20px?</p>
