0
我有一个动画旋转ImageButton。停止原始状态的Android动画
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<rotate
android:fromDegrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="infinite"
android:duration="2000" />
</set>
它在用户点击它并运行AsyncTask时开始。现在,在AsyncTask达到PostExecute之后,它突然跳到原始状态并停止。
我可以避免这种突然跳跃,只是继续旋转,直到它达到其原始位置,然后让它停在那里?
我使用这个,现在停在PostExecute动画:
refresh.getAnimation().cancel();
谢谢!