Share via


OverScroller Class

Definition

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

[Android.Runtime.Register("android/widget/OverScroller", DoNotGenerateAcw=true)]
public class OverScroller : Java.Lang.Object
[<Android.Runtime.Register("android/widget/OverScroller", DoNotGenerateAcw=true)>]
type OverScroller = class
    inherit Object
Inheritance
OverScroller
Attributes

Remarks

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

Java documentation for android.widget.OverScroller.

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.

Constructors

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

Creates an OverScroller.

OverScroller(Context, IInterpolator, Single, Single)

Creates an OverScroller with flywheel enabled.

OverScroller(Context, IInterpolator)

Creates an OverScroller with flywheel enabled.

OverScroller(Context)

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

OverScroller(IntPtr, JniHandleOwnership)

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

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
CurrVelocity

Returns the absolute value of the current velocity.

CurrX

Returns the current X offset in the scroll.

CurrY

Returns the current Y offset in the scroll.

FinalX

Returns where the scroll will end.

FinalY

Returns where the scroll will end.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsFinished

Returns whether the scroller has finished scrolling.

IsOverScrolled

Returns whether the current Scroller is currently returning to a valid position.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
StartX

Returns the start X offset in the scroll.

StartY

Returns the start Y offset in the scroll.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

AbortAnimation()

Stops the animation.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
ComputeScrollOffset()

Call this when you want to know the new location.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
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)

Start scrolling based on a fling gesture.

ForceFinished(Boolean)

Force the finished field to a particular value.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
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.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SpringBack(Int32, Int32, Int32, Int32, Int32, Int32)

Call this when you want to 'spring back' into a valid coordinate range.

StartScroll(Int32, Int32, Int32, Int32, Int32)

Start scrolling by providing a starting point and the distance to travel.

StartScroll(Int32, Int32, Int32, Int32)

Start scrolling by providing a starting point and the distance to travel.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to