title: Change TextView's position dynamically using java in RelativeLayout android
body: <p>i have RelativeLayout, and there is a textview in the RelativeLayout, i am getting position from server like ALIGN_PARENT_LEFT, ALIGN_PARENT_TOP, based on that value i want to change position of textview...</p>
  
  <p>My xml file is....</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/white"
  android:id="@+id/relativelayout"
  android:orientation="vertical" &gt;
  
  
  &lt;TextView
      android:id="@+id/share_text"
      android:layout_width="100dp"
      android:layout_height="60dp"
      android:gravity="center"
      android:background="@drawable/share_text" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>i have got knowledge from <a href="https://stackoverflow.com/questions/9094421/set-position-of-an-edittext-and-textview-in-a-relativelayout-programatically">Set position of an EditText and TextView in a RelativeLayout programatically</a> to chage the position but couldn't help me</p>
  
  <p>can any body help me how to change position of textview dynamically...</p>