Language

Touch.OnTouchEvent(TextView, ISpannable, MotionEvent) Method

Definition

Handles touch events for dragging.

[Android.Runtime.Register("onTouchEvent", "(Landroid/widget/TextView;Landroid/text/Spannable;Landroid/view/MotionEvent;)Z", "")]
public static bool OnTouchEvent(Android.Widget.TextView? widget, Android.Text.ISpannable? buffer, Android.Views.MotionEvent? e);
[<Android.Runtime.Register("onTouchEvent", "(Landroid/widget/TextView;Landroid/text/Spannable;Landroid/view/MotionEvent;)Z", "")>]
static member OnTouchEvent : Android.Widget.TextView * Android.Text.ISpannable * Android.Views.MotionEvent -> bool

Parameters

widget
TextView

The text view to scroll.

buffer
ISpannable

The text buffer that holds the drag state.

e
MotionEvent

The touch event.

Returns

true if the event was handled; otherwise, false.

Attributes

Remarks

Handles touch events for dragging. You may want to do other actions like moving the cursor on touch as well.

Java documentation for android.text.method.Touch.onTouchEvent(android.widget.TextView, android.text.Spannable, android.view.MotionEvent).

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