added in version 25.4.0
belongs to Maven artifact com.android.support:animated-vector-drawable:28.0.0-alpha1
belongs to Maven artifact com.android.support:animated-vector-drawable:28.0.0-alpha1
Animatable2Compat
public
interface
Animatable2Compat
implements
Animatable
android.support.graphics.drawable.Animatable2Compat |
Known Indirect Subclasses |
Interface that drawables supporting animations and callbacks should extend in support lib.
Summary
Nested classes | |
---|---|
class |
Animatable2Compat.AnimationCallback
Abstract class for animation callback. |
Public methods | |
---|---|
abstract
void
|
clearAnimationCallbacks()
Removes all existing animation callbacks. |
abstract
void
|
registerAnimationCallback(Animatable2Compat.AnimationCallback callback)
Adds a callback to listen to the animation events. |
abstract
boolean
|
unregisterAnimationCallback(Animatable2Compat.AnimationCallback callback)
Removes the specified animation callback. |
Inherited methods | |
---|---|
From
interface
android.graphics.drawable.Animatable
|
Public methods
clearAnimationCallbacks
added in version 25.4.0
void clearAnimationCallbacks ()
Removes all existing animation callbacks.
registerAnimationCallback
added in version 25.4.0
void registerAnimationCallback (Animatable2Compat.AnimationCallback callback)
Adds a callback to listen to the animation events.
Parameters | |
---|---|
callback |
Animatable2Compat.AnimationCallback : Callback to add.
|
unregisterAnimationCallback
added in version 25.4.0
boolean unregisterAnimationCallback (Animatable2Compat.AnimationCallback callback)
Removes the specified animation callback.
Parameters | |
---|---|
callback |
Animatable2Compat.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.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]