Animation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abstraction for an Animation that can be applied to Views, Surfaces, or other objects.
[Android.Runtime.Register("android/view/animation/Animation", DoNotGenerateAcw=true)]
public abstract class Animation : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.ICloneable
[<Android.Runtime.Register("android/view/animation/Animation", DoNotGenerateAcw=true)>]
type Animation = class
inherit Object
interface ICloneable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Inheritance
- Derived
- Attributes
- Implements
Remarks
Abstraction for an Animation that can be applied to Views, Surfaces, or other objects. See the android.view.animation animation package description file
.
Java documentation for android.view.animation.Animation
.
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() |
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) |
Creates a new animation whose parameters come from the specified context and attributes set. |
Animation(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
Infinite |
Repeat the animation indefinitely. |
StartOnFirstFrame |
Can be used as the start time to indicate the start time should be the current
time when |
Properties
BackdropColor |
Returns the background color to show behind the animating windows. -or- Set the color to use for the backdrop shown behind the animating windows. |
BackgroundColor |
Returns the background color behind the animation. -or- Set background behind animation. |
Class |
Returns the runtime class of this |
DetachWallpaper |
Return value of |
Duration |
How long this animation should last -or- How long this animation should last. |
FillAfter |
If fillAfter is true, this animation will apply its transformation after the end time of the animation. -or- If fillAfter is true, the transformation that this animation performed will persist when it is finished. |
FillBefore |
If fillBefore is true, this animation will apply its transformation before the start time of the animation. -or- If fillBefore is true, this animation will apply its transformation before the start time of the animation. |
FillEnabled |
If fillEnabled is true, this animation will apply the value of fillBefore. -or- If fillEnabled is true, the animation will apply the value of fillBefore. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
HasEnded |
Indicates whether this animation has ended or not. |
HasStarted |
Indicates whether this animation has started or not. |
Interpolator |
Gets the acceleration curve type for this animation. -or- Sets the acceleration curve for this animation. |
IsInitialized |
Whether or not the animation has been initialized. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
PeerReference | (Inherited from Object) |
RepeatCount |
Defines how many times the animation should repeat. -or- Sets how many times the animation should be repeated. |
RepeatMode |
Defines what this animation should do when it reaches the end. -or- Defines what this animation should do when it reaches the end. |
ScaleFactor |
The scale factor is set by the call to |
ShowBackdrop |
If showBackdrop is |
StartOffset |
When this animation should start, relative to StartTime -or- When this animation should start relative to the start time. |
StartTime |
When this animation should start. -or- When this animation should start. |
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. |
ZAdjustment |
Returns the Z ordering mode to use while running the animation as
previously set by |
Methods
ApplyTransformation(Single, Transformation) |
Helper for getTransformation. |
Cancel() |
Cancel the animation. |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
ComputeDurationHint() |
Compute a hint at how long the entire animation may last, in milliseconds. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
EnsureInterpolator() |
Gurantees that this animation has an interpolator. |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetTransformation(Int64, Transformation, Single) |
Gets the transformation to apply at a specified point in time. |
GetTransformation(Int64, Transformation) |
Gets the transformation to apply at a specified point in time. |
Initialize(Int32, Int32, Int32, Int32) |
Initialize this animation with the dimensions of the object being animated as well as the objects parents. |
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) |
Reset() |
Reset the initialization state of this animation. |
ResolveSize(Dimension, Single, Int32, Int32) |
Convert the information in the description of a size to an actual dimension |
RestrictDuration(Int64) |
Ensure that the duration that this animation will run is not longer than <var>durationMillis</var>. |
ScaleCurrentDuration(Single) |
How much to scale the duration by. |
SetAnimationListener(Animation+IAnimationListener) |
Binds an animation listener to this animation. |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetInterpolator(Context, Int32) |
Sets the acceleration curve for this animation. |
Start() |
Convenience method to start the animation the first time
|
StartNow() |
Convenience method to start the animation at the current time in milliseconds. |
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) |
WillChangeBounds() |
Indicates whether or not this animation will affect the bounds of the animated view. |
WillChangeTransformationMatrix() |
Indicates whether or not this animation will affect the transformation matrix. |
Events
AnimationEnd | |
AnimationRepeat | |
AnimationStart |
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) |