Kevin Kevin - 4 months ago 29
Java Question

Tablelayout or custum listView layout

Can anyone tell me on what layout i need to use to create this type of view in android. I thought of going with

TableLayout
, but i am not sure on this.

Can anyone help me on this.

Answer

If the content of the sheet is dynamic, then perhaps a ListView would be more apropriate, as the only thing you'll have to do in order to update the list, will be to notify the adapter that the dataset has been changed.

Another option to consider would be an ExpandableListView. This differs from the ListView by allowing two levels: groups which can individually be expanded to show its children.

(The ExpandableListView can be set to be expanded by default, if you don't want to have it expandable.)

Comments