Animatable API介绍

public interface Animatable 

android.graphics.drawable.Animatable

Animatable2                       Abstract class that drawables supporting animations and callbacks should extend. 

                                             支持动画和回调的drawables应该继承的类


AnimatedImageDrawable     Drawable for drawing animated images (like GIF). 

                                               绘制动图的drawable  (比如:GIF)


AnimatedVectorDrawable    This class animates properties of a VectorDrawable with animations defined                                                                                                   using ObjectAnimatoror AnimatorSet

                                                这个类激活VectorDrawable的属性,VectorDrawable使用ObjectAnimator或者 AnimatorSet定义动画


AnimationDrawable     An object used to create frame-by-frame animations, defined by a series of Drawable objects, which                                                       can be used as a View object's background. 


                                              用于创建一帧一帧的动画的对象,由一系列Drawables定义而成,用于View对象的背景。


Interface that drawables supporting animations should implement.

支持动画的drawables 应该实现的接口


Summary  总结

Public methods

abstract booleanisRunning()

Indicates whether the animation is running.

表示动画是否正在运行

abstract voidstart()

Starts the drawable's animation.

开启drawable的动画

abstract voidstop()

Stops the drawable's animation.

停止drawable的动画


Public methods

isRunning

added in  API level 4
 
  
boolean isRunning ()

Indicates whether the animation is running.

Returns
booleanTrue if the animation is running, false otherwise.
True 如果动画正在执行的话,否则为false

start

added in  API level 4
 
  
void start ()

Starts the drawable's animation.

开启drawables的动画

stop

added in  API level 4
 
  
void stop ()

Stops the drawable's animation.

停止drawables的动画



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值