Share via


LayoutAnimationController Class

Definition

A layout animation controller is used to animate the children of a layout or a view group.

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

Remarks

A layout animation controller is used to animate the children of a layout or a view group. Each child uses the same animation but for every one of them, the animation starts at a different time. A layout animation controller is used by android.view.ViewGroup to compute the delay by which each child's animation start must be offset. The delay is computed by using characteristics of each child, like its index in the view group.

This standard implementation computes the delay by multiplying a fixed amount of miliseconds by the index of the child in its parent view group. Subclasses are supposed to override #getDelayForView(android.view.View) to implement a different way of computing the delay. For instance, a android.view.animation.GridLayoutAnimationController will compute the delay based on the column and row indices of the child in its parent view group.

Information used to compute the animation delay of each child are stored in an instance of android.view.animation.LayoutAnimationController.AnimationParameters, itself stored in the android.view.ViewGroup.LayoutParams of the view.

Java documentation for android.view.animation.LayoutAnimationController.

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

LayoutAnimationController(Animation, Single)

Creates a new layout animation controller with the specified delay and the specified animation.

LayoutAnimationController(Animation)

Creates a new layout animation controller with a delay of 50% and the specified animation.

LayoutAnimationController(Context, IAttributeSet)

Creates a new layout animation controller from external resources.

LayoutAnimationController(IntPtr, JniHandleOwnership)

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

Properties

Animation

Returns the animation applied to each child of the view group on which this controller is set. -or- Sets the animation to be run on each child of the view group on which this layout animation controller is .

Class

Returns the runtime class of this Object.

(Inherited from Object)
Delay

Returns the delay by which the children's animation are offset. -or- Sets the delay, as a fraction of the animation duration, by which the children's animations are offset.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
Interpolator

Returns the interpolator used to interpolate the delays between the children. -or- Sets the interpolator used to interpolate the delays between the children.

IsDone

Indicates whether the layout animation is over or not.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
MAnimation

The animation applied on each child of the view group on which this layout animation controller is set.

MInterpolator

The interpolator used to interpolate the delays.

MRandomizer

The randomizer used when the order is set to random.

Order

Returns the order used to compute the delay of each child's animation. -or- Sets the order used to compute the delay of each child's animation.

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

Clone()

Creates and returns a copy of this object.

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

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

(Inherited from Object)
GetAnimationForView(View)

Returns the animation to be applied to the specified view.

GetDelayForView(View)

Returns the amount of milliseconds by which the specified view's animation must be delayed or offset.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetTransformedIndex(LayoutAnimationController+AnimationParameters)

Transforms the index stored in android.view.animation.LayoutAnimationController.AnimationParameters by the order returned by #getOrder().

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)
SetAnimation(Context, Int32)

Sets the animation to be run on each child of the view group on which this layout animation controller is .

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInterpolator(Context, Int32)

Sets the interpolator used to interpolate the delays between the children.

Start()

Starts the animation.

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)
WillOverlap()

Indicates whether two children's animations will overlap.

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