Preface
This chapter covers android. widget. AdapterView. OnItemLongClickListener. The version is Android 2.3 r1 and translated from "cnmahj". You are welcome to visit his blog: http://android.toolib.net/blog/. Thank you again "cnmahj "! 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. OnItemLongClickListener
Ii. Category Overview
Defines the interface of the callback function called when a project in the long-pressed view.
Iii. Public Methods
Public abstract boolean onItemLongClick (AdapterView <?> Parent, View view, int position, long id)
The callback function that is executed when you press the project in the view and hold down (long press. To access the data associated with the selected entry, you can call getItemAtPosition (position ).
Parameters
The AbsListView of the parent click event.
View the clicked view in the AbsListView.
Position view position (INDEX) in the list ).
Id of the row to which the row is clicked.
Return Value
If the callback function is used to process the long-press event, the system returns true; otherwise, the system returns false.
Iv. Supplement
This document is transformed from an online Android Chinese document.
V. related chapters
Android api Chinese (73) -- AdapterView