Preface
This chapter content is android. widget. AdapterView. OnItemClickListener, version for Android 2.3 r1, translated from "wheat", welcome to communicate with him: 0mellisa0@gmail.com, thanks again "wheat "! Welcome to join in Android API Chinese 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 static interface AdapterView. OnItemClickListener
Direct subclass
CharacterPickerDialog, PreferenceScreen
Ii. Overview
This interface defines that when an element in AdapterView is clicked, a callback function is called.
Iii. Public Methods
Public abstract voidOnItemClick(AdapterView <?> Parent, View view, int position, long id)
When an element in AdapterView is clicked, the callback method is called.
To access data related to the selected items, the execution program can call getItemAtPosition (position ).
Parameters
The AdapterView of the parent click action.
View clicked in AdapterView (a view provided by the adapter ).
Position view position in the adapter.
Id of the row of the clicked element.
4. related chapters
Android api Chinese (73) -- AdapterView