com.googlecode.androidannotations.annotations
Annotation Type ItemSelect


@Retention(value=SOURCE)
@Target(value=METHOD)
public @interface ItemSelect

Should be used on item selected listener methods for AdapterView classes The method may have 1 or 2 parameters. The first parameter must be a boolean, and the second is the object from the adapter, at the selected position. It may be of any type, so be careful about potential ClassCastException. If the second parameter is an int, it will be the position instead of the object from the adapter. The first boolean parameter indicates if something has been selected or not. If nothing was selected, the second parameter will be null. 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.

Author:
Pierre-Yves Ricau, Mathieu Boniface

Optional Element Summary
 int[] value
           
 

value

public abstract int[] value
Default:
-1


Copyright © 2010-2012. All Rights Reserved.