Freigeben über


AbsListView.Fling(Int32) Method

Definition

Initiate a fling with the given velocity.

[Android.Runtime.Register("fling", "(I)V", "GetFling_IHandler")]
public virtual void Fling (int velocityY);
[<Android.Runtime.Register("fling", "(I)V", "GetFling_IHandler")>]
abstract member Fling : int -> unit
override this.Fling : int -> unit

Parameters

velocityY
Int32

Vertical velocity in pixels per second. Note that this is velocity of content, not velocity of a touch that initiated the fling.

Attributes

Remarks

Initiate a fling with the given velocity.

Applications can use this method to manually initiate a fling as if the user initiated it via touch interaction.

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