setListAdapter

public void setListAdapter (ListAdapter adapter) 

 Provide the cursor for the list view

作用是为列表视图提供光标(不知道这样翻译对不对).

ListAdapter是列表适配器接口,继承于Adapter.

Extended Adapter that is the bridge between a ListView and the data that backs the list. Frequently that data comes from a Cursor, but that is not required. The ListView can display any data provided that it is wrapped in a ListAdapter.

当继承Adapter的时候是连接列表视图和数据之间的桥梁.通常这些数据来自于一个光标,但它并不是必须的.列表视图可以展示任何包含在ListAdapter中的数据.

你可能感兴趣的:(Adapter)