私の Android アプリケーションでは、ドローアブル オブジェクトに回転アニメーションをプログラムで適用します。
Animation rotation = AnimationUtils.loadAnimation(this, R.animator.rotate);
rotation.setRepeatCount(Animation.INFINITE);
progressDialog.findViewById(R.id.progress).startAnimation(rotation);
これは Android 2.3 では問題なく動作しますが、4.0 では失敗します。ドローアブルは 4.0 ではアニメーション化されません。ここで何が問題になる可能性がありますか?
編集
ここに私のrotate.xml
ファイルがあります:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<rotate
android:fromDegrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%"
android:duration="2000"
android:repeatCount="-1"
android:interpolator="@android:anim/linear_interpolator"/>
</set>