开发者

What do ListActivity and ListView provide beyond a regular Activity and View?

In Android, what functionality do ListActivity and ListView provide beyond a regu开发者_运维知识库lar Activity and View?


A ListActivity provides some convenience methods for using a ListView inside of the Activity. The best example would be that it is very easy to attach a data source (ArrayList or Cursor to a Database) to the ListView and have it be displayed to the user. The ListView can also be made clickable.


ListActivity hosts a ListView object that can be bound to different data sources.

In short:

If your Activity will have a ListView check ListActivity. It might help you a little.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜