OverScroller Constructors

Definition

Overloads

OverScroller(Context)

Creates an OverScroller with a viscous fluid scroll interpolator and flywheel.

OverScroller(Context, IInterpolator)

Creates an OverScroller with flywheel enabled.

OverScroller(IntPtr, JniHandleOwnership)

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

OverScroller(Context, IInterpolator, Single, Single)

Creates an OverScroller with flywheel enabled.

OverScroller(Context, IInterpolator, Single, Single, Boolean)

Creates an OverScroller.

OverScroller(Context)

Creates an OverScroller with a viscous fluid scroll interpolator and flywheel.

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

Parameters

context
Context

context

Attributes

Remarks

Creates an OverScroller with a viscous fluid scroll interpolator and flywheel.

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

OverScroller(Context, IInterpolator)

Creates an OverScroller with flywheel enabled.

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

Parameters

context
Context

The context of this application.

interpolator
IInterpolator

The scroll interpolator. If null, a default (viscous) interpolator will be used.

Attributes

Remarks

Creates an OverScroller with flywheel enabled.

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

OverScroller(IntPtr, JniHandleOwnership)

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

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

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

OverScroller(Context, IInterpolator, Single, Single)

Creates an OverScroller with flywheel enabled.

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

Parameters

context
Context

The context of this application.

interpolator
IInterpolator

The scroll interpolator. If null, a default (viscous) interpolator will be used.

bounceCoefficientX
Single

A value between 0 and 1 that will determine the proportion of the velocity which is preserved in the bounce when the horizontal edge is reached. A null value means no bounce. This behavior is no longer supported and this coefficient has no effect.

bounceCoefficientY
Single

Same as bounceCoefficientX but for the vertical direction. This behavior is no longer supported and this coefficient has no effect.

Attributes

Remarks

Creates an OverScroller with flywheel enabled.

This member is deprecated. Use #OverScroller(Context, Interpolator) instead.

Java documentation for android.widget.OverScroller.OverScroller(android.content.Context, android.view.animation.Interpolator, float, 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

OverScroller(Context, IInterpolator, Single, Single, Boolean)

Creates an OverScroller.

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

Parameters

context
Context

The context of this application.

interpolator
IInterpolator

The scroll interpolator. If null, a default (viscous) interpolator will be used.

bounceCoefficientX
Single

A value between 0 and 1 that will determine the proportion of the velocity which is preserved in the bounce when the horizontal edge is reached. A null value means no bounce. This behavior is no longer supported and this coefficient has no effect.

bounceCoefficientY
Single

Same as bounceCoefficientX but for the vertical direction. This behavior is no longer supported and this coefficient has no effect.

flywheel
Boolean

If true, successive fling motions will keep on increasing scroll speed.

Attributes

Remarks

Creates an OverScroller.

This member is deprecated. Use #OverScroller(Context, Interpolator) instead.

Java documentation for android.widget.OverScroller.OverScroller(android.content.Context, android.view.animation.Interpolator, float, float, 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