| java.lang.Object | |||
| ↳ | android.text.method.BaseMovementMethod | ||
| ↳ | android.text.method.ScrollingMovementMethod | ||
| ↳ | android.text.method.LinkMovementMethod | ||
A movement method that traverses links in the text buffer and scrolls if necessary. Supports clicking on links with DPad Center or Enter.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
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.
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Performs a down movement action.
|
||||||||||
|
|
Performs a movement key action.
|
||||||||||
|
|
Performs a left movement action.
|
||||||||||
|
|
Performs a right movement action.
|
||||||||||
|
|
Performs an up movement action.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.method.ScrollingMovementMethod
|
|||||||||||
From class
android.text.method.BaseMovementMethod
|
|||||||||||
From class
java.lang.Object
|
|||||||||||
From interface
android.text.method.MovementMethod
|
|||||||||||
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.
Performs a down movement action. Moves the cursor or scrolls down by one line.
| widget | The text view. |
|---|---|
| buffer | The text buffer. |
Performs a movement key action.
The default implementation decodes the key down and invokes movement actions
such as
down(TextView, Spannable)
and
up(TextView, Spannable)
.
onKeyDown(TextView, Spannable, int, KeyEvent)
calls this method once
to handle an
ACTION_DOWN
.
onKeyOther(TextView, Spannable, KeyEvent)
calls this method repeatedly
to handle each repetition of an
ACTION_MULTIPLE
.
| widget | The text view. |
|---|---|
| buffer | The text buffer. |
| keyCode | The key code. |
| movementMetaState | The keyboard meta states used for movement. |
| event | The key event. |
Performs a left movement action. Moves the cursor or scrolls left by one character.
| widget | The text view. |
|---|---|
| buffer | The text buffer. |
Performs a right movement action. Moves the cursor or scrolls right by one character.
| widget | The text view. |
|---|---|
| buffer | The text buffer. |
Performs an up movement action. Moves the cursor or scrolls up by one line.
| widget | The text view. |
|---|---|
| buffer | The text buffer. |