Android scrolable table layout
<p>What are the basic steps to add a scroll bar into table layout in programmatically? Not using XML,
I've tried this:</p>

<pre><code>TableLayout MainLayout = new TableLayout(this);
ScrollView scview=new ScrollView(this);     
scview.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
scview.addView(MainLayout);
MainLayout.setHorizontalScrollBarEnabled(true);
</code></pre>

<p>But this is not working. It gives error...</p>
