title: How to set the align parent right attribute of TextViews in relative layout programmatically
body: <p>I have a relative layout which I am creating programmatically:</p>
  
  <pre><code> RelativeLayout layout = new RelativeLayout( this );
  RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
          LayoutParams.WRAP_CONTENT);
  </code></pre>
  
  <p>Now I have two TextViews which I want to add in this relative layout. But the problem is both TextViews are being shown on the left of the RelativeLayout overlapping on each other.</p>
  
  <pre><code>textViewContainer.addView(textView1);
  textViewContainer.addView(textView2);
  </code></pre>
  
  <p>Now I want to know how can I programmatically set the the </p>
  
  <pre><code>`android:layout_alignParentRight="true"`
  </code></pre>
  
  <p>or </p>
  
  <pre><code>`android:layout_toLeftOf="@id/textView"` 
  </code></pre>
  
  <p>attribute of TextViews as we do in the xml?</p>