android - Which layout is suitable for table? -


i create custom layout table dynamically in runtime. here want. don't know layout suitable (grid view or somethings). there button , textview in each cell view. have tried table layout. not ok. hope idea table. layout suitable?

i show image table got 'you need @ least 10 reputation post images'. thanks

i'm not going write whole layout can started , can make adjustments. tablelayout should work but, honest, don't use them because feel have more control using relativelayout when possible.

your root viewgroup relativelayout 3 linearlayouts nested inside them. use horizontal orientation them (which default linearlayout). assign id's each , use relativelayout properties

android:layout_below="@+id/idofllabove"; android:layout_alignleft="@id/idofllabove"; 

to each. inside each linearlayout have textviews or whatever need be. there many different ways accomplish do

also, can give each linearlayout weightsum of 3 each view inside each linearlayout weight of 1 line up. may need add/adjust properties these layouts depending on exact needs should able started. hope helps


Comments