public static interface TextView.OnEditorActionListener
| android.widget.TextView.OnEditorActionListener |
在编辑器上执行操作时调用回调的接口定义。
公共方法(Public methods) |
|
|---|---|
abstract boolean |
onEditorAction(TextView v, int actionId, KeyEvent event) 在执行操作时调用。 |
boolean onEditorAction (TextView v, int actionId, KeyEvent event)
在执行操作时调用。
| 参数(Parameters) | |
|---|---|
v |
TextView: The view that was clicked. |
actionId |
int: Identifier of the action. This will be either the identifier you supplied, or EditorInfo.IME_NULL if being called due to the enter key being pressed. |
event |
KeyEvent: If triggered by an enter key, this is the event; otherwise, this is null. |
| 返回(Returns) | |
|---|---|
boolean |
Return true if you have consumed the action, else false. |