私はAndroidでアニメーションを実装しました。 これはxmlです:Android Animation:速度を変更
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillAfter="true">
<translate
android:fromXDelta="-4%p"
android:toXDelta="4%p"
android:repeatCount="2"
android:repeatMode="reverse"
android:duration="1000" />
</set>
しかし、移動の速度が少し遅いです。どうすればスピードを上げることができますか?
......
おかげ
PS私はまたaccelerate_interpolator
を試してみましたが、それはあまりにも遅いです:私がやりたい動きはナイフの切り傷のようです。 私はそれをいくつかの時間の前後に移動したいと思います。
時間を短縮しようとします。 –
あなたは正しいことがあります。私はそれがとても簡単だとは思わない。私は時間を減らし、カウントを増やします。助けてくれてありがとう – AngelSara