开发者

How to set animation for button background

I have button and I have two pictures green.png and red开发者_运维百科.png. How to achieve that when button is visible to change button background every 500 ms ( green.png=>red.png=>green.png=>red.png...) ?


try to use AnimationDrawable

http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html

Hope it help you!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜