I must need to use table layout. but i want table layout with fixed
size when there is no record or two row. after deleted that two
records(row) size is fixed. and when more than two records(row) are
added then size of table is increasing. table layout created on
runtime. is it possible ? how? i create table layout at runtime and
add row dynamically its working and also size is also increasing but
when i put fixed size then the size is not increasing. Suggest me.
Thanks
This is my code:
layout is:
   <RelativeLayout android:id="@+id/relativeLayout1"
android:layout_width="fill_parent" android:layout_marginTop="10dip"
android:layout_height="wrap_content"> <TableLayout android:id="@+id/
TableLayout01" android:background="#FFFFFF"
android:layout_width="fill_parent" android:layout_height="130dip"> </
TableLayout> </RelativeLayout>

code:

TableLayout table = (TableLayout) findViewById(R.id.TableLayout01);
TableLayout.LayoutParams params = new
TableLayout.LayoutParams( TableLayout.LayoutParams.FILL_PARENT,
TableLayout.LayoutParams.WRAP_CONTENT); table.setLayoutParams(params);

above code to increasing size.
Run first time its display. but when i click the button to add rows it
gives error.
Please suggest me.
Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to