Android Guides | Samples

Android.Graphics.Drawables.AnimatedStateListDrawable Class

Drawable containing a set of Drawable keyframes where the currently displayed keyframe is chosen based on the current state set.

See Also: AnimatedStateListDrawable

Syntax

[Android.Runtime.Register("android/graphics/drawable/AnimatedStateListDrawable", DoNotGenerateAcw=true)]
public class AnimatedStateListDrawable : StateListDrawable

Remarks

Drawable containing a set of Drawable keyframes where the currently displayed keyframe is chosen based on the current state set. Animations between keyframes may optionally be defined using transition elements.

This drawable can be defined in an XML file with the <animated-selector> element. Each keyframe Drawable is defined in a nested <item> element. Transitions are defined in a nested <transition> element.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Graphics.Drawables.AnimatedStateListDrawable are listed below.

See Also: StateListDrawable

Public Constructors

Protected Constructors

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

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

AddState(Int32[], Drawable, Int32)
Add a new drawable to the set of keyframes.
AddTransition(Int32, Int32, Object, Boolean)
Adds a new transition between keyframes.