animated-roate和rotate

435 阅读1分钟

animated-roate

  • animated-rotate是放在drawable xml形式存在
<?xml version="1.0" encoding="utf-8"?>
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
            android:drawable="@drawable/icon_loading"
            android:fromDegrees="0.0"
            android:pivotX="50.0%"
            android:pivotY="50.0%"
            android:toDegrees="360.0" />

这样看起来加载数组看起来都是正常的显示

  • 使用roate,明显是一帧一帧来显示的,显示效果不对头