开发者

How to set animation for button background

开发者 https://www.devze.com 2023-04-12 08:27 出处:网络
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

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

精彩评论

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