画像を半分に分割し、各部分を異なる方向にアニメーション化する次のコードがあります。
final AnimatorSet mSetAnim = new AnimatorSet();
final Animator topAnim = ObjectAnimator.ofFloat(topImage, "translationY", (bmp.getHeight() / 2) * -1);
final Animator bottomAnim = ObjectAnimator.ofFloat(bottomImage, "translationY", bmp.getHeight() / 2);
mSetAnim.setDuration(duration);
mSetAnim.playTogether(topAnim, bottomAnim);
mSetAnim.start();
古いAndroidバージョンをサポートするためにNineOldAndroidを使用していますが、何らかの理由で「期間」にどのような値を入力しても影響がないようです。アニメーションの長さは変わりません - 0.5 秒程度です。
AndroidのアニメーションAPIを使用すると、持続時間が変化していることがわかります。
これを回避する方法はありますか?