Class AnimationDrawable
public class AnimationDrawable : DrawableContainer, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IAnimatable, IRunnable
- Inheritance
-
AnimationDrawable
- Implements
- Inherited Members
- Extension Methods
Constructors
AnimationDrawable()
public AnimationDrawable()
AnimationDrawable(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AnimationDrawable(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
AddFrame(Drawable, int)
public void AddFrame(Drawable arg0, int arg1)
Parameters
CreatePoolableInstance()
HPA initializer for AnimationDrawable()
public static AnimationDrawable CreatePoolableInstance()
Returns
GetDuration(int)
public int GetDuration(int arg0)
Parameters
Returns
GetFrame(int)
public Drawable GetFrame(int arg0)
Parameters
Returns
GetNumberOfFrames()
public int GetNumberOfFrames()
Returns
IsOneShot()
https://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html#isOneShot()
public bool IsOneShot()
Returns
IsRunning()
https://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html#isRunning()
public bool IsRunning()
Returns
Run()
public void Run()
SetOneShot(bool)
public void SetOneShot(bool arg0)
Parameters
Start()
public void Start()
Stop()
public void Stop()
Operators
implicit operator Animatable(AnimationDrawable)
Converter from AnimationDrawable to Animatable
public static implicit operator Animatable(AnimationDrawable t)
Parameters
Returns
implicit operator Runnable(AnimationDrawable)
Converter from AnimationDrawable to Runnable
public static implicit operator Runnable(AnimationDrawable t)