Gallery.OnScroll(MotionEvent, MotionEvent, Single, Single) Method

Definition

Caution

deprecated

Notified when a scroll occurs with the initial on down MotionEvent and the current move MotionEvent.

[Android.Runtime.Register("onScroll", "(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z", "GetOnScroll_Landroid_view_MotionEvent_Landroid_view_MotionEvent_FFHandler")]
[System.Obsolete("deprecated")]
public virtual bool OnScroll (Android.Views.MotionEvent? e1, Android.Views.MotionEvent? e2, float distanceX, float distanceY);
[<Android.Runtime.Register("onScroll", "(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z", "GetOnScroll_Landroid_view_MotionEvent_Landroid_view_MotionEvent_FFHandler")>]
[<System.Obsolete("deprecated")>]
abstract member OnScroll : Android.Views.MotionEvent * Android.Views.MotionEvent * single * single -> bool
override this.OnScroll : Android.Views.MotionEvent * Android.Views.MotionEvent * single * single -> bool

Parameters

e1
MotionEvent

The first down motion event that started the scrolling.

e2
MotionEvent

The move motion event that triggered the current onScroll.

distanceX
Single

The distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2.

distanceY
Single

The distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2.

Returns

Implements

Attributes

Remarks

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