I have a table,where the situation is it has to be popped up dynamically by taking the values from the database.I'm not sure about whether dynamically rows are extended,So please tell me ,whether it is possible or not.
Asked
Active
Viewed 1,687 times
0
-
refer to this link: http://stackoverflow.com/a/18207894/2987421 – Santosh Kathait Mar 11 '14 at 12:03
-
if number of entries are more then use list instead of table – vs.thaakur Mar 11 '14 at 12:05
-
yes. but I want a table like structure (two Columns) can this possible in ListView – Sukan Mar 11 '14 at 12:08
-
TableRow child=new TableRow(getActivity()); child.setLayoutParams(new TableLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)); child.addView(yourview); tableLayout.addView(child); – vs.thaakur Mar 11 '14 at 12:08
-
you can also use gridview – vs.thaakur Mar 11 '14 at 12:53
-
thanks for the valuable comments . – Sukan Jun 10 '14 at 10:32
-
1possible duplicate of [Programatically adding TableRow to TableLayout not working](http://stackoverflow.com/questions/7279501/programatically-adding-tablerow-to-tablelayout-not-working) – Krupa Patel Jun 16 '14 at 08:58