title: Android how to set 2 TextView side by side programmatically?
body: <p>How i can display two textview side by side in Java ? 
  I succeeded to do  in xml !</p>
  
  <p>My code :</p>
  
  <pre><code>&lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;TextView 
          android:id="@+id/label"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textSize="12dip"
          android:layout_marginRight="10dp"
          android:layout_alignParentLeft="true"
          android:textColor="#ffffff" /&gt;
  
      &lt;TextView 
          android:id="@+id/value"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textSize="12dip"
          android:layout_alignParentRight="true"
          android:textColor="#ffffff" /&gt;
  
  &lt;/RelativeLayout&gt; 
  </code></pre>