FileDocCategorySizeDatePackage
MovementMethod.javaAPI DocAndroid 1.5 API2025Wed May 06 22:41:56 BST 2009android.text.method

MovementMethod

public interface MovementMethod

Fields Summary
Constructors Summary
Methods Summary
public booleancanSelectArbitrarily()
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 voidinitialize(android.widget.TextView widget, Spannable text)

public booleanonKeyDown(android.widget.TextView widget, Spannable text, int keyCode, android.view.KeyEvent event)

public booleanonKeyOther(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 booleanonKeyUp(android.widget.TextView widget, Spannable text, int keyCode, android.view.KeyEvent event)

public voidonTakeFocus(android.widget.TextView widget, Spannable text, int direction)

public booleanonTouchEvent(android.widget.TextView widget, Spannable text, android.view.MotionEvent event)

public booleanonTrackballEvent(android.widget.TextView widget, Spannable text, android.view.MotionEvent event)