Android - placing booth fixed size and dynamic size view in row
<p>I have a dynamic size RelativeLayout containing TextView with a arbitrary text. Also i have fixed size TextView with timestamp. I want to place both RelativeLayout and TextView with timestamp in one line, side by side. </p>

<p>Like this:</p>

<p><img src="http://i.stack.imgur.com/vywbn.png" alt="What I want to get"></p>

<p>What I'm really getting:</p>

<p><img src="http://i.stack.imgur.com/L6k1I.png" alt="What I'm really getting"></p>

<p>As you can see, layout with text just occupies the entire width. </p>

<p>XML:</p>

<pre><code>    &lt;RelativeLayout android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/news_list_element"
                android:layout_marginRight="5dip"
                android:layout_alignParentLeft="true"
                android:focusable="false"
                android:paddingRight="8dip"
                android:paddingLeft="17dip"
                android:paddingTop="4dip"
                android:paddingBottom="4dip"&gt;
    &lt;TextView android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/news_list_text"
              android:background="@android:color/transparent"
              android:textColor="#000000"
              android:focusable="false"
              android:padding="3dip"
            /&gt;
&lt;/RelativeLayout&gt;
&lt;TextView android:id="@+id/messages_dialog_timestamp_in"
          android:background="#000000"
          android:text="12:05"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_toRightOf="@id/news_list_element"
          android:paddingBottom="9dip"
          android:paddingLeft="0dip"
          android:textColor="#8f9eac"
        /&gt;
</code></pre>
