Animation动画资源文件示例
1.创建anim动画资源文件
(1)右键res,新建android resource directory
(2)右键anim,新建android resource file,可以创建旋转、透明度、缩放动画。
myrotate.xml
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:toDegrees="360"
android:duration="5000"
android:repeatCount="infinite"
>
</rotate>
myfade.xml
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:fromAlpha="1"
android:toAlpha="0"
android:duration="5000"
android:repeatCount="infinite"
>
</alpha>
myscale.xml
<?xml version="1.0" encoding