[android-developers] Dynamic Layout Question

2010-04-15 Thread grace
hi, i tried creating the layout dynamically in the oncreate of the activity my code looks some thing like this.. mLinearLayout_no_button = new LinearLayout(this); mLinearLayout_no_button.setOrientation(1); ///---1.for orientation to be vertical

Re: [android-developers] Dynamic Layout Question

2010-04-15 Thread social hub
try setting the layoutparams .setLayoutParams( new LayoutParams(100,40)); When you are creating dynamically its best to set the width and height always. u can also set to WRAP_CONTENT,WRAP_CONTENT etc. On Thu, Apr 15, 2010 at 7:32 AM, grace grace.a...@wipro.com wrote: hi, i tried creating