Damir
Damir

Reputation: 56209

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...) ?

Upvotes: 1

Views: 4696

Answers (1)

ihrupin
ihrupin

Reputation: 6972

try to use AnimationDrawable

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

Hope it help you!

Upvotes: 3

Related Questions