com.googlecode.androidannotations.annotations
Annotation Type ItemLongClick
@Retention(value=SOURCE)
@Target(value=METHOD)
public @interface ItemLongClick
Should be used on item long click listener methods for AdapterView classes
The method may have 0 or 1 parameter, that will be the object from the
adapter, at the selected position. It may be of any type, so be careful about
potential ClassCastException.
If the parameter is an int, it will be the position instead of the object from the adapter.
The annotation value should be one of R.id.* fields. If not set, the method
name will be used as the R.id.* field name..
The method may return a boolean, void, or a java.lang.Boolean. If returning
void, it will be considered as returning true (ie the method has handled the
event).
- Author:
- Benjamin Fellous, Pierre-Yves Ricau, Mathieu Boniface
Optional Element Summary |
int[] |
value
|
value
public abstract int[] value
- Default:
- -1
Copyright © 2010-2012. All Rights Reserved.