I have an app on the iPhone that is completely table view driven. On android all I see is a static table, how can I create a table that I can populate with data that I requested from the network.开发者_JS百科
You could use either ListView
or GridView
. ListView
has a method getView
which you override to customize ListView item
. This very much like (UITableViewCell *)tableView...
in iphone, except that you needn't count the height of each cell. If you want to have something like tableView with sections you could use ExpandableListView
. Here are links to Android ListView, Android Expandable ListView and Android GridView. There can also be found very useful examples in Android Dev web-site.
You can use GridView
or ListView
with custom View for row. In both cases you can supply a BaseAdaper
(or a subclass of it) through which you can manipulate the data.
If you want the exact grid border like example here you go Android Grid Border... Obviously you can render data dynamically from whatever the source is...
精彩评论