@Target(value=METHOD) @Retention(value=CLASS) public @interface OnTouch
OnTouchListener
on the view for each ID specified.
@OnTouch(R.id.example) void onTouch() {
Toast.makeText(this, "Touched!", LENGTH_SHORT).show();
}
Any number of parameters from
onTouch
may be used
on the method.View.OnTouchListener
,
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.