开发者

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

开发者 https://www.devze.com 2023-01-10 05:48 出处:网络
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/

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

精彩评论

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