Sdílet prostřednictvím


Scroller Constructors

Definition

Overloads

Scroller(Context)

Create a Scroller with the default duration and interpolator.

Scroller(Context, IInterpolator)

Create a Scroller with the specified interpolator.

Scroller(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Scroller(Context, IInterpolator, Boolean)

Create a Scroller with the specified interpolator.

Scroller(Context)

Create a Scroller with the default duration and interpolator.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Scroller (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.Scroller : Android.Content.Context -> Android.Widget.Scroller

Parameters

context
Context
Attributes

Remarks

Create a Scroller with the default duration and interpolator.

Java documentation for android.widget.Scroller.Scroller(android.content.Context).

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

Scroller(Context, IInterpolator)

Create a Scroller with the specified interpolator.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;)V", "")]
public Scroller (Android.Content.Context? context, Android.Views.Animations.IInterpolator? interpolator);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;)V", "")>]
new Android.Widget.Scroller : Android.Content.Context * Android.Views.Animations.IInterpolator -> Android.Widget.Scroller

Parameters

context
Context
interpolator
IInterpolator
Attributes

Remarks

Create a Scroller with the specified interpolator. If the interpolator is null, the default (viscous) interpolator will be used. "Flywheel" behavior will be in effect for apps targeting Honeycomb or newer.

Java documentation for android.widget.Scroller.Scroller(android.content.Context, android.view.animation.Interpolator).

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

Scroller(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Scroller (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.Scroller : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.Scroller

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

Scroller(Context, IInterpolator, Boolean)

Create a Scroller with the specified interpolator.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;Z)V", "")]
public Scroller (Android.Content.Context? context, Android.Views.Animations.IInterpolator? interpolator, bool flywheel);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/animation/Interpolator;Z)V", "")>]
new Android.Widget.Scroller : Android.Content.Context * Android.Views.Animations.IInterpolator * bool -> Android.Widget.Scroller

Parameters

context
Context
interpolator
IInterpolator
flywheel
Boolean
Attributes

Remarks

Create a Scroller with the specified interpolator. If the interpolator is null, the default (viscous) interpolator will be used. Specify whether or not to support progressive "flywheel" behavior in flinging.

Java documentation for android.widget.Scroller.Scroller(android.content.Context, android.view.animation.Interpolator, boolean).

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