Added in API level 1

ScrollingMovementMethod


open class ScrollingMovementMethod : BaseMovementMethod, MovementMethod
kotlin.Any
   ↳ android.text.method.BaseMovementMethod
   ↳ android.text.method.ScrollingMovementMethod

A movement method that interprets movement keys by scrolling the text buffer.

Summary

Public constructors

Public methods
open static MovementMethod!

open Unit
onTakeFocus(widget: TextView!, text: Spannable!, dir: Int)

open Boolean
onTouchEvent(widget: TextView!, buffer: Spannable!, event: MotionEvent!)

Protected methods
open Boolean
bottom(widget: TextView!, buffer: Spannable!)

open Boolean
down(widget: TextView!, buffer: Spannable!)

open Boolean
end(widget: TextView!, buffer: Spannable!)

open Boolean
home(widget: TextView!, buffer: Spannable!)

open Boolean
left(widget: TextView!, buffer: Spannable!)

open Boolean
lineEnd(widget: TextView!, buffer: Spannable!)

open Boolean
lineStart(widget: TextView!, buffer: Spannable!)

open Boolean
pageDown(widget: TextView!, buffer: Spannable!)

open Boolean
pageUp(widget: TextView!, buffer: Spannable!)

open Boolean
right(widget: TextView!, buffer: Spannable!)

open Boolean
top(widget: TextView!, buffer: Spannable!)

open Boolean
up(widget: TextView!, buffer: Spannable!)

Inherited functions

Public constructors

ScrollingMovementMethod

ScrollingMovementMethod()

Public methods

getInstance

Added in API level 1
open static fun getInstance(): MovementMethod!

onTakeFocus

Added in API level 1
open fun onTakeFocus(
    widget: TextView!,
    text: Spannable!,
    dir: Int
): Unit

onTouchEvent

Added in API level 1
open fun onTouchEvent(
    widget: TextView!,
    buffer: Spannable!,
    event: MotionEvent!
): Boolean

Protected methods

bottom

Added in API level 11
protected open fun bottom(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

down

Added in API level 1
protected open fun down(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

end

Added in API level 11
protected open fun end(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

home

Added in API level 11
protected open fun home(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

left

Added in API level 1
protected open fun left(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

lineEnd

Added in API level 11
protected open fun lineEnd(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

lineStart

Added in API level 11
protected open fun lineStart(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

pageDown

Added in API level 11
protected open fun pageDown(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

pageUp

Added in API level 11
protected open fun pageUp(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.
Added in API level 1
protected open fun right(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

top

Added in API level 11
protected open fun top(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.

up

Added in API level 1
protected open fun up(
    widget: TextView!,
    buffer: Spannable!
): Boolean
Parameters
widget TextView!: The text view.
buffer Spannable!: The text buffer.
Return
Boolean True if the event was handled.