title: How to set layout property from code
body: <p>How can I set the property of an TextView which comes under a RelativeLayout from the code.</p>
  
  <p>Here s my layout:</p>
  
  <pre><code>&lt;RelativeLayout
      android:id="@+id/team_left"
      android:layout_width="wrap_content"
      android:layout_height="50dip"
      android:layout_alignParentLeft="true"&gt;
      &lt;ImageView
          android:id="@+id/flag_left"     
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:src="@drawable/img"/&gt;
      &lt;TextView
          android:id="@+id/country_left"
          android:textColor="@color/txt_color"  
          android:textStyle="bold"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>How can I set the properties like "android:layout_toRightOf="@id/flag_left" for the textview from the code.                            </p>