[android-developers] Adding TableLayout dynamically not working

2011-07-04 Thread Jake
I have what I thought was very simple code: //Get LinearLayout declared in XML final LinearLayout mainLayout = (LinearLayout) findViewById(R.id.linLayout); //Create a LinearLayout to display text in. LinearLayout myLayout = new LinearLayout(this); myLayout.setLayoutParams(new

Re: [android-developers] Adding TableLayout dynamically not working

2011-07-04 Thread TreKing
On Sun, Jul 3, 2011 at 12:38 PM, Jake jmwe...@gmail.com wrote: My ultimate goal is to have alternating LinearLayouts and TableLayouts generated dynamically You're complicating things. Create your LinearLayouts, TableLayouts, or component view containing both, in XML with all properties set as