开发者

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

开发者 https://www.devze.com 2023-01-10 09:46 出处:网络
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

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

精彩评论

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