Sorry for the Newb-ness.
I want to create a list of view elements in a LinearLayout
(vertical). I created an xml layout that is a TableLayout
called "category_list.xml"
<TableLayout>
<TableRow>
<ImageView />
<TextView />
<CheckBox />
</TableRow>
</TableLayout>
I want to iterate an array, on each iteration create a new TableLayout view and add it to the LinearLayout. The peice I'm missing is creating a new TableLayout based on the above xml.
Something like
TableLayout t = new TableLayout( R.layout.category_list );
Can someone point me in the right direction? Is it better to generate the TableLayout programatically?