Freigeben über


Scroller.SetFriction(Single) Method

Definition

The amount of friction applied to flings.

[Android.Runtime.Register("setFriction", "(F)V", "")]
public void SetFriction (float friction);
[<Android.Runtime.Register("setFriction", "(F)V", "")>]
member this.SetFriction : single -> unit

Parameters

friction
Single

A scalar dimension-less value representing the coefficient of friction.

Attributes

Remarks

The amount of friction applied to flings. The default value is ViewConfiguration#getScrollFriction.

Java documentation for android.widget.Scroller.setFriction(float).

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