title: How to set layout_span through code
body: <p>Does anyone know how to set/change the <code>android:layout_span=""</code> of an EditText in Android at runtime. 
  I already have the EditText defined in my XML file.</p>
  
  <pre><code>&lt;TableRow android:paddingTop="20dip" android:gravity="center_horizontal"&gt;  
  
      &lt;EditText android:layout_width="150dip" 
           android:text=""
           android:layout_height="40dip" 
           android:id="@+id/p"
           android:layout_span="2"&gt;
      &lt;/EditText&gt;
  
  &lt;/TableRow&gt;
  </code></pre>