public interface Animatable2
implements Animatable
android.graphics.drawable.Animatable2 |
Known Indirect Subclasses |
可以扩展支持动画和回调的抽象类。
Nested classes |
|
---|---|
class |
Animatable2.AnimationCallback
|
Public methods |
|
---|---|
abstract void |
clearAnimationCallbacks() 删除所有现有的动画回调。 |
abstract void |
registerAnimationCallback(Animatable2.AnimationCallback callback) 添加回调来收听动画事件。 |
abstract boolean |
unregisterAnimationCallback(Animatable2.AnimationCallback callback) 删除指定的动画回调。 |
Inherited methods |
|
---|---|
From interface android.graphics.drawable.Animatable
|
void registerAnimationCallback (Animatable2.AnimationCallback callback)
添加回调来收听动画事件。
Parameters | |
---|---|
callback |
Animatable2.AnimationCallback : Callback to add. |
boolean unregisterAnimationCallback (Animatable2.AnimationCallback callback)
删除指定的动画回调。
Parameters | |
---|---|
callback |
Animatable2.AnimationCallback : Callback to remove. |
Returns | |
---|---|
boolean |
false if callback didn't exist in the call back list, or true if callback has been removed successfully. |