Android: Reposition control below another control programmatically
<p>I have the following in xml. It is used in a relative layout:</p>

<pre><code>  &lt;TextView
    android:id="@+id/tv1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/&gt;        
  &lt;TextView
    android:id="@+id/tv2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/tv1"/&gt;
  &lt;TextView
    android:id="@+id/tv3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/tv2" /&gt;
</code></pre>

<p>In code, if I remove the 2nd textview (tv2), I want to reposition tv3 below tv1. I wasn't able to find a way to do this with xml, so I want to do it programmatically. How can I do this? Thanks a lot!</p>
