MovementMethodpublic interface MovementMethod
Methods Summary |
---|
public 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 void | initialize(android.widget.TextView widget, Spannable text)
| public boolean | onKeyDown(android.widget.TextView widget, Spannable text, int keyCode, android.view.KeyEvent event)
| public boolean | onKeyOther(android.widget.TextView view, Spannable text, android.view.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 boolean | onKeyUp(android.widget.TextView widget, Spannable text, int keyCode, android.view.KeyEvent event)
| public void | onTakeFocus(android.widget.TextView widget, Spannable text, int direction)
| public boolean | onTouchEvent(android.widget.TextView widget, Spannable text, android.view.MotionEvent event)
| public boolean | onTrackballEvent(android.widget.TextView widget, Spannable text, android.view.MotionEvent event)
|
|