Preface
This chapter content is android. widget. ListAdapter, version for Android 2.2 r1, translated from "de rod", welcome to visit his blog: http://sparkrico.javaeye.com, thank you again "de rod "! I look forward to your participation in Android Chinese API translation, contact me over140@gmail.com.
Statement
You are welcome to repost, but please keep the original source of the article :)
Blog Garden: http://www.cnblogs.com/
Android Chinese translation group: http://code.taobao.org/project/view/404/
Body
I. Structure
Public interface ListAdapter extends Adapter
Android. widget. ListAdapter
Direct subclass
ArrayAdapter <T>, BaseAdapter, CursorAdapter, HeaderViewListAdapter, ResourceCursorAdapter, SimpleAdapter, SimpleCursorAdapter, WrapperListAdapter
Ii. Overview
The extended Adapter is a bridge between ListView and data. Usually the data comes from the cursor, but it is not necessary. ListView can display all data contained in ListAdapter.
Iii. Public Methods
Public abstract booleanAreAllItemsEnabled ()
Are all items available in ListAdapter? If yes, all projects are selectable and can be clicked with the mouse.
Return Value
Returns true if all items are available
Public abstract booleanIsEnabled (Int position)
If the specified position is not a separator Project (an isolated project is an unselectable project that cannot be clicked with the mouse), the system returns the true result. If the location is invalid, the result is uncertain. In this case, an ArrayIndexOutOfBoundsException (out of bounds) exception will be thrown.
Parameters
PositionProject Index
Return Value
Returns true if this project is not an isolated project.
Iv. Supplement
Article Selection
Android adapter system