Reputation: 56209
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
Reputation: 6972
try to use AnimationDrawable
http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html
Hope it help you!
Upvotes: 3