Animation Animation Class

Definition

Abstraction for an Animation that can be applied to Views, Surfaces, or other objects.

[Android.Runtime.Register("android/view/animation/Animation", ApiSince=1, DoNotGenerateAcw=true)]
public abstract class Animation : Java.Lang.Object, IDisposable, Java.Lang.ICloneable
type Animation = class
    inherit Object
    interface ICloneable
    interface IJavaObject
    interface IDisposable
Inheritance
AnimationAnimation
Derived
Attributes
Implements

Remarks

Android platform documentation

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

Animation() Animation()

Creates a new animation with a duration of 0ms, the default interpolator, with fillBefore set to true and fillAfter set to false

Animation(Context, IAttributeSet) Animation(Context, IAttributeSet)

Creates a new animation whose parameters come from the specified context and attributes set.

Animation(IntPtr, JniHandleOwnership) Animation(IntPtr, JniHandleOwnership)

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

Fields

Infinite Infinite

Repeat the animation indefinitely.

StartOnFirstFrame StartOnFirstFrame

Can be used as the start time to indicate the start time should be the current time when GetTransformation(Int64, Transformation) is invoked for the first animation frame.

Properties

BackgroundColor BackgroundColor

Returns the background color behind the animation.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
DetachWallpaper DetachWallpaper

Return value of DetachWallpaper.

Duration Duration

How long this animation should last

FillAfter FillAfter

If fillAfter is true, this animation will apply its transformation after the end time of the animation.

FillBefore FillBefore

If fillBefore is true, this animation will apply its transformation before the start time of the animation.

FillEnabled FillEnabled

If fillEnabled is true, this animation will apply the value of fillBefore.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasEnded HasEnded
HasStarted HasStarted
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
Interpolator Interpolator

Gets the acceleration curve type for this animation.

IsInitialized IsInitialized

Whether or not the animation has been initialized.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
PeerReference PeerReference Inherited from Object
RepeatCount RepeatCount

Defines how many times the animation should repeat.

RepeatMode RepeatMode

Defines what this animation should do when it reaches the end.

ScaleFactor ScaleFactor

The scale factor is set by the call to getTransformation.

StartOffset StartOffset

When this animation should start, relative to StartTime

StartTime StartTime

When this animation should start.

ThresholdClass ThresholdClass

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

ThresholdType ThresholdType

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

ZAdjustment ZAdjustment

Returns the Z ordering mode to use while running the animation as previously set by ZAdjustment.

Methods

ApplyTransformation(Single, Transformation) ApplyTransformation(Single, Transformation)

Helper for getTransformation.

Cancel() Cancel()

Cancel the animation.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
ComputeDurationHint() ComputeDurationHint()

Compute a hint at how long the entire animation may last, in milliseconds.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
EnsureInterpolator() EnsureInterpolator()

Gurantees that this animation has an interpolator.

Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetTransformation(Int64, Transformation) GetTransformation(Int64, Transformation)

Gets the transformation to apply at a specified point in time.

GetTransformation(Int64, Transformation, Single) GetTransformation(Int64, Transformation, Single)

Gets the transformation to apply at a specified point in time.

Initialize(Int32, Int32, Int32, Int32) Initialize(Int32, Int32, Int32, Int32)

Initialize this animation with the dimensions of the object being animated as well as the objects parents.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
Reset() Reset()

Reset the initialization state of this animation.

ResolveSize(Dimension, Single, Int32, Int32) ResolveSize(Dimension, Single, Int32, Int32)

Convert the information in the description of a size to an actual dimension

RestrictDuration(Int64) RestrictDuration(Int64)

durationMillis

ScaleCurrentDuration(Single) ScaleCurrentDuration(Single)

How much to scale the duration by.

SetAnimationListener(Animation+IAnimationListener) SetAnimationListener(Animation+IAnimationListener)
SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInterpolator(Context, Int32) SetInterpolator(Context, Int32)

Sets the acceleration curve for this animation.

Start() Start()

Convenience method to start the animation the first time GetTransformation(Int64, Transformation) is invoked.

StartNow() StartNow()

Convenience method to start the animation at the current time in milliseconds.

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

Returns a string containing a concise, human-readable description of this object.

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

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WillChangeBounds() WillChangeBounds()
WillChangeTransformationMatrix() WillChangeTransformationMatrix()

Events

AnimationEnd AnimationEnd
AnimationRepeat AnimationRepeat
AnimationStart AnimationStart

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to