日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Animatable API介绍

發布時間:2025/4/16 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Animatable API介绍 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

public interface Animatable?

android.graphics.drawable.Animatable
Known indirect subclasses? ?非直接子類

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 4boolean isRunning ()

Indicates whether the animation is running.

Returns
booleanTrue if the animation is running, false otherwise.
True 如果動畫正在執行的話,否則為false

start

added in?API level 4void start ()

Starts the drawable's animation.

開啟drawables的動畫

stop

added in?API level 4void stop ()

Stops the drawable's animation.

停止drawables的動畫



總結

以上是生活随笔為你收集整理的Animatable API介绍的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。