Skip to content

Most visited

Recently visited

navigation
Added in API level 3

TextView.OnEditorActionListener

public static interface TextView.OnEditorActionListener

android.widget.TextView.OnEditorActionListener


Interface definition for a callback to be invoked when an action is performed on the editor.

Summary

Public methods

abstract boolean onEditorAction(TextView v, int actionId, KeyEvent event)

Called when an action is being performed.

Public methods

onEditorAction

Added in API level 3
boolean onEditorAction (TextView v, 
                int actionId, 
                KeyEvent event)

Called when an action is being performed.

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.