@Target(value=METHOD)
@Retention(value=CLASS)
public @interface OnFocusChange
OnFocusChangeListener on the view for each ID
specified.
@OnFocusChanged(R.id.example) void onFocusChanged(boolean focused) {
Toast.makeText(this, focused ? "Gained focus" : "Lost focus", LENGTH_SHORT).show();
}
Any number of parameters from onFocusChange may be used on the method.View.OnFocusChangeListener,
Optional| Modifier and Type | Required Element and Description |
|---|---|
int[] |
value
View IDs to which the method will be bound.
|
Copyright © 2013-2014. All Rights Reserved.