Android Guides | Samples

Android.Widget.OverScroller Class

This class encapsulates scrolling with the ability to overshoot the bounds of a scrolling operation.

See Also: OverScroller

Syntax

[Android.Runtime.Register("android/widget/OverScroller", DoNotGenerateAcw=true)]
public class OverScroller : Object

Remarks

This class encapsulates scrolling with the ability to overshoot the bounds of a scrolling operation. This class is a drop-in replacement for Scroller in most cases.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9

The members of Android.Widget.OverScroller are listed below.

See Also: Object

Public Constructors

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

Protected Constructors

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

Public Properties

[read-only]
CurrVelocitySingle. Returns the absolute value of the current velocity.
[read-only]
CurrXInt32. Returns the current X offset in the scroll.
[read-only]
CurrYInt32. Returns the current Y offset in the scroll.
[read-only]
FinalXInt32. Returns where the scroll will end.
[read-only]
FinalYInt32. Returns where the scroll will end.
[read-only]
IsFinishedBoolean. Returns whether the scroller has finished scrolling.
[read-only]
IsOverScrolledBoolean. Returns whether the current Scroller is currently returning to a valid position.
[read-only]
StartXInt32. Returns the start X offset in the scroll.
[read-only]
StartYInt32. Returns the start Y offset in the scroll.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AbortAnimation()
Stops the animation.
ComputeScrollOffset() : Boolean
Call this when you want to know the new location.
Fling(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Start scrolling based on a fling gesture.
Fling(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
ForceFinished(Boolean)
Force the finished field to a particular value.
NotifyHorizontalEdgeReached(Int32, Int32, Int32)
Notify the scroller that we've reached a horizontal boundary.
NotifyVerticalEdgeReached(Int32, Int32, Int32)
Notify the scroller that we've reached a vertical boundary.
SetFriction(Single)
The amount of friction applied to flings.
SpringBack(Int32, Int32, Int32, Int32, Int32, Int32) : Boolean
Call this when you want to 'spring back' into a valid coordinate range.
StartScroll(Int32, Int32, Int32, Int32)
Start scrolling by providing a starting point and the distance to travel.
StartScroll(Int32, Int32, Int32, Int32, Int32)
Start scrolling by providing a starting point and the distance to travel.