@Target(value=METHOD) @Retention(value=CLASS) public @interface OnItemLongClick
OnItemLongClickListener
on the view for each
ID specified.
@OnItemLongClick(R.id.example_list) boolean onItemLongClick(int position) {
Toast.makeText(this, "Long clicked position " + position + "!", LENGTH_SHORT).show();
return true;
}
Any number of parameters from
onItemLongClick
may be used on the method.AdapterView.OnItemLongClickListener
,
Optional
Modifier and Type | Optional Element and Description |
---|---|
int[] |
value
View IDs to which the method will be bound.
|
Copyright © 2013-2015. All Rights Reserved.