开发者

How to create a custom button in Android that animates with a frame animation

Is it possible to create开发者_运维技巧 a custom button in Android, where the button is idly animating using a frame animation (AnimationDrawable)?


Did you checked: https://developer.android.com/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()
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜