public class

ScrollingMovementMethod

extends Object
implements MovementMethod
java.lang.Object
   ↳ android.text.method.ScrollingMovementMethod
Known Direct Subclasses

Summary

Public Constructors
ScrollingMovementMethod()
Public Methods
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.
static MovementMethod getInstance()
void initialize(TextView widget, Spannable text)
boolean onKeyDown(TextView widget, Spannable buffer, int keyCode, KeyEvent event)
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.
boolean onKeyUp(TextView widget, Spannable buffer, int keyCode, KeyEvent event)
void onTakeFocus(TextView widget, Spannable text, int dir)
boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event)
boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event)
Protected Methods
boolean down(TextView widget, Spannable buffer)
Scrolls the text down if possible.
boolean left(TextView widget, Spannable buffer)
Scrolls the text to the left if possible.
boolean right(TextView widget, Spannable buffer)
Scrolls the text to the right if possible.
boolean up(TextView widget, Spannable buffer)
Scrolls the text up if possible.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.text.method.MovementMethod

Public Constructors

public ScrollingMovementMethod ()

Since: API Level 1

Public Methods

public boolean canSelectArbitrarily ()

Since: API Level 1

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 static MovementMethod getInstance ()

Since: API Level 1

public void initialize (TextView widget, Spannable text)

Since: API Level 1

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

Since: API Level 1

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

Since: API Level 3

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 (TextView widget, Spannable buffer, int keyCode, KeyEvent event)

Since: API Level 1

public void onTakeFocus (TextView widget, Spannable text, int dir)

Since: API Level 1

public boolean onTouchEvent (TextView widget, Spannable buffer, MotionEvent event)

Since: API Level 1

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

Since: API Level 1

Protected Methods

protected boolean down (TextView widget, Spannable buffer)

Since: API Level 1

Scrolls the text down if possible.

protected boolean left (TextView widget, Spannable buffer)

Since: API Level 1

Scrolls the text to the left if possible.

protected boolean right (TextView widget, Spannable buffer)

Since: API Level 1

Scrolls the text to the right if possible.

protected boolean up (TextView widget, Spannable buffer)

Since: API Level 1

Scrolls the text up if possible.