public interface

MovementMethod

android.text.method.MovementMethod
Known Indirect Subclasses

Summary

Public Methods
abstract boolean canSelectArbitrarily()
Returns true if this movement method allows arbitrary selection of any text; false if it has no selection (like a movement method that only scrolls) or a constrained selection (for example limited to links.
abstract void initialize(TextView widget, Spannable text)
abstract boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event)
abstract boolean onKeyOther(TextView view, Spannable text, KeyEvent event)
If the key listener wants to other kinds of key events, return true, otherwise return false and the caller (i.e.
abstract boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event)
abstract void onTakeFocus(TextView widget, Spannable text, int direction)
abstract boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event)
abstract boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event)

Public Methods

public abstract boolean canSelectArbitrarily ()

Returns true if this movement method allows arbitrary selection of any text; false if it has no selection (like a movement method that only scrolls) or a constrained selection (for example limited to links. The "Select All" menu item is disabled if arbitrary selection is not allowed.

public abstract void initialize (TextView widget, Spannable text)

public abstract boolean onKeyDown (TextView widget, Spannable text, int keyCode, KeyEvent event)

public abstract boolean onKeyOther (TextView view, Spannable text, KeyEvent event)

If the key listener wants to other kinds of key events, return true, otherwise return false and the caller (i.e. the widget host) will handle the key.

public abstract boolean onKeyUp (TextView widget, Spannable text, int keyCode, KeyEvent event)

public abstract void onTakeFocus (TextView widget, Spannable text, int direction)

public abstract boolean onTouchEvent (TextView widget, Spannable text, MotionEvent event)

public abstract boolean onTrackballEvent (TextView widget, Spannable text, MotionEvent event)