Udostępnij za pośrednictwem


Scroller.Fling(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) Method

Definition

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.

maxX
Int32

Maximum X value. The scroller will not scroll past this point.

minY
Int32

Minimum Y value. The scroller will not scroll past this point.

maxY
Int32

Maximum Y value. The scroller will not scroll past this point.

Attributes

Remarks

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

Java documentation for android.widget.Scroller.fling(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