how to draw vertical line dynamically?
<p>I want a vertical line drawn dynamically inside the a table row. Some thing like below in XML:</p>

<p>I was able to get all the layout from code, except the "View". Any suggestion would be appreciated!</p>

<pre><code>&lt;TableRow&gt;
   &lt;LinearLayout 
     ......
     android:orientation="vertical"&gt;
     &lt;CheckBox&gt;..&lt;/CheckBox&gt;
     &lt;Button&gt;..&lt;/Button&gt;
  &lt;/LinearLayout&gt;

  &lt;View   // this is what I want to achieve, dynamically
    android:layout_width="2dip"
    android:layout_height="fill_parent"
    android:background="#FAFFFB"/&gt;

&lt;/TableRow&gt;
</code></pre>
