Tôi có một tập hợp của hai hình ảnh động, cả hình ảnh động chạy cùng nhau sử dụng xen vượtAndroid Có thể sử dụng các bộ nội suy đồng thời không?
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/overshoot_interpolator" >
<translate
android:duration="6000"
android:fromXDelta="100%" android:toXDelta="0%" />
<scale
android:duration="6000"
android:fromXScale="1.0" android:toXScale="0.6"
android:pivotX="0"
android:fromYScale="1.0" android:toYScale="1.0"
android:repeatCount="1"
android:repeatMode="reverse" />
</set>
Tôi muốn translate
hình ảnh động để vượt qua, và scale
hoạt hình để tăng tốc.
tôi đã cố gắng để làm điều này, nhưng nó không hoạt động:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<translate
android:interpolator="@android:anim/overshoot_interpolator"
android:duration="6000"
android:fromXDelta="100%" android:toXDelta="0%" />
<scale
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="6000"
android:fromXScale="1.0" android:toXScale="0.6"
android:pivotX="0"
android:fromYScale="1.0" android:toYScale="1.0"
android:repeatCount="1"
android:repeatMode="reverse" />
</set>
Dường như nếu chỉ có một người xen vào có thể hoạt động tại một thời gian nhất định cho tất cả các hình ảnh động được thực hiện trên một đối tượng duy nhất.