Share via


OverScroller.Fling Method

Definition

Overloads

Fling(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Start scrolling based on a fling gesture.

Fling(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Start scrolling based on a fling gesture.

Fling(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Start scrolling based on a fling gesture.

[Android.Runtime.Register("fling", "(IIIIIIIIII)V", "GetFling_IIIIIIIIIIHandler")]
public virtual void Fling (int startX, int startY, int velocityX, int velocityY, int minX, int maxX, int minY, int maxY, int overX, int overY);
[<Android.Runtime.Register("fling", "(IIIIIIIIII)V", "GetFling_IIIIIIIIIIHandler")>]
abstract member Fling : int * int * int * int * int * int * int * int * int * int -> unit
override this.Fling : int * int * int * int * int * int * int * int * int * int -> unit

Parameters

startX
Int32

Starting point of the scroll (X)

startY
Int32

Starting point of the scroll (Y)

velocityX
Int32

Initial velocity of the fling (X) measured in pixels per second.

velocityY
Int32

Initial velocity of the fling (Y) measured in pixels per second

minX
Int32

Minimum X value. The scroller will not scroll past this point unless overX > 0. If overfling is allowed, it will use minX as a springback boundary.

maxX
Int32

Maximum X value. The scroller will not scroll past this point unless overX > 0. If overfling is allowed, it will use maxX as a springback boundary.

minY
Int32

Minimum Y value. The scroller will not scroll past this point unless overY > 0. If overfling is allowed, it will use minY as a springback boundary.

maxY
Int32

Maximum Y value. The scroller will not scroll past this point unless overY > 0. If overfling is allowed, it will use maxY as a springback boundary.

overX
Int32

Overfling range. If > 0, horizontal overfling in either direction will be possible.

overY
Int32

Overfling range. If > 0, vertical overfling in either direction will be possible.

Attributes

Remarks

Start scrolling based on a fling gesture. The distance traveled will depend on the initial velocity of the fling.

Java documentation for android.widget.OverScroller.fling(int, int, int, int, int, int, int, int, int, int).

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

Fling(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Start scrolling based on a fling gesture.

[Android.Runtime.Register("fling", "(IIIIIIII)V", "GetFling_IIIIIIIIHandler")]
public virtual void Fling (int startX, int startY, int velocityX, int velocityY, int minX, int maxX, int minY, int maxY);
[<Android.Runtime.Register("fling", "(IIIIIIII)V", "GetFling_IIIIIIIIHandler")>]
abstract member Fling : int * int * int * int * int * int * int * int -> unit
override this.Fling : int * int * int * int * int * int * int * int -> unit

Parameters

startX
Int32

Starting point of the scroll (X)

startY
Int32

Starting point of the scroll (Y)

velocityX
Int32

Initial velocity of the fling (X) measured in pixels per second.

velocityY
Int32

Initial velocity of the fling (Y) measured in pixels per second

minX
Int32

Minimum X value. The scroller will not scroll past this point unless overX > 0. If overfling is allowed, it will use minX as a springback boundary.

maxX
Int32

Maximum X value. The scroller will not scroll past this point unless overX > 0. If overfling is allowed, it will use maxX as a springback boundary.

minY
Int32

Minimum Y value. The scroller will not scroll past this point unless overY > 0. If overfling is allowed, it will use minY as a springback boundary.

maxY
Int32

Maximum Y value. The scroller will not scroll past this point unless overY > 0. If overfling is allowed, it will use maxY as a springback boundary.

Attributes

Remarks

Java documentation for android.widget.OverScroller.fling(int, int, int, int, int, int, int, int, int, int).

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