How to set a text view at the left edge of another textview? 
<p>I have to draw two textviews such that when one text view ends, the other textview begins at the pervious ones left edge.  I have to do this programatically as the text in each may vary.
How do I get the  x co-ordinate of the left edge of the first textview and how do I set the right edge of the second textview to match the left edge of the first one.</p>

<p>Any help is appreciated.</p>

<p>Edit:
here is my layout</p>

<pre><code>&lt;TextView android:gravity="center_vertical|left"
    android:textColor="#000000" android:textSize="10dip" android:id="@+id/updateorder"
    android:layout_marginTop="50dip" android:layout_alignParentRight="true"
    android:text="x" style="@style/compactview" android:background="@drawable/ornage"
    android:paddingLeft="5dip" android:layout_marginRight="73dip"&gt;&lt;/TextView&gt;
&lt;TextView style="@style/compactview" android:id="@+id/neworder"
    android:textColor="#000000" android:background="@drawable/red1"
    android:layout_alignBottom="@id/updateorder" android:text="x"
    android:textSize="10dip" android:gravity="center"
    android:layout_toRightOf="@id/updateorder"&gt;&lt;/TextView&gt;
</code></pre>
