TextView.MovementMethod Property

Definition

Gets the android.text.method.MovementMethod being used for this TextView, which provides positioning, scrolling, and text selection functionality. -or- Sets the android.text.method.MovementMethod for handling arrow key movement for this TextView.

public Android.Text.Method.IMovementMethod? MovementMethod { [Android.Runtime.Register("getMovementMethod", "()Landroid/text/method/MovementMethod;", "")] get; [Android.Runtime.Register("setMovementMethod", "(Landroid/text/method/MovementMethod;)V", "")] set; }
[<get: Android.Runtime.Register("getMovementMethod", "()Landroid/text/method/MovementMethod;", "")>]
[<set: Android.Runtime.Register("setMovementMethod", "(Landroid/text/method/MovementMethod;)V", "")>]
member this.MovementMethod : Android.Text.Method.IMovementMethod with get, set

Property Value

the movement method being used for this TextView.

Attributes

Remarks

Property getter documentation:

Gets the android.text.method.MovementMethod being used for this TextView, which provides positioning, scrolling, and text selection functionality. This will frequently be null for non-EditText TextViews.

Java documentation for android.widget.TextView.getMovementMethod().

Property setter documentation:

Sets the android.text.method.MovementMethod for handling arrow key movement for this TextView. This can be null to disallow using the arrow keys to move the cursor or scroll the view.

Be warned that if you want a TextView with a key listener or movement method not to be focusable, or if you want a TextView without a key listener or movement method to be focusable, you must call #setFocusable again after calling this to get the focusability back the way you want it.

Java documentation for android.widget.TextView.setMovementMethod(android.text.method.MovementMethod).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to