0
私はベクトル描画可能なアニメーションを持っています。 API 17-24では正常に動作しますが、API 25では問題があります。アニメーションは実行されますが、ベクトルは異なる順序で移動します。ここでAPIのベクトルアニメーション25
は私のベクトルはここでアニメーションここ
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator
android:duration="300"
android:propertyName="scaleX"
android:repeatCount="1"
android:repeatMode="reverse"
android:valueTo="0.05"
android:valueType="floatType"/>
<objectAnimator
android:duration="300"
android:propertyName="translateX"
android:repeatCount="1"
android:repeatMode="reverse"
android:valueTo="155"
android:valueType="floatType"/>
</set>
iは
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
Drawable animation = logo.getDrawable();
if (animation instanceof Animatable) {
((Animatable) animation).start();
}
}
}, 300);
それを実行する方法です
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/logo_vector_white">
<target
android:name="eye"
android:animation="@animator/blink_eye" />
</animated-vector>
描画可能である私はAnimatedVectorDrawable、API 25から始まることを、発見しました
runs on RenderThread。これにより問題が発生した場合は、解決方法を教えてください。私はまた、すべてのアニメーションファイルを単一のxmlにバンドルしようとしましたが、同じ結果が得られました。
異なるバージョンのアニメーションはどのような順序で実行されますか? –
@LewisMcGeary私の答えをご覧ください –