views:

44

answers:

1

Is it possible to create a custom button in Android, where the button is idly animating using a frame animation (AnimationDrawable)?

+1  A: 

Did you checked: http://developer.android.com/intl/zh-TW/guide/topics/graphics/2d-graphics.html#frame-animation

  • create the frame animation
  • save it in the res/drawable folder
  • ser the button background to be that resource
  • getBackground.start()
Macarse