52ky 发表于 2022-11-9 14:28:38

Android研究院之游戏开发AnimationDrable动画(十八)源码

Android开发中在制作2D帧动画中提供了使用XML配置动画文件的方法绘制,也就是说Android底层提供了动画播放的接口,那么我们分析一下如何调用它的接口来绘制动画。首先在工程res资源文件夹下创建anim动画文件夹,在这个文件夹中建立一个animation.xml文件,这样它的途径就为re/anim/animation.xml。

(In Android development, the method of using XML to configure animation files is provided in making 2D frame animation. That is to say, the Android bottom layer provides an interface for animation playback. Let's analyze how to call its interface to draw animation. First, create an anim animation folder under the project res resource folder, and create an animation.xml file in this folder. This way is re/anim/animation.xml.)




页: [1]
查看完整版本: Android研究院之游戏开发AnimationDrable动画(十八)源码