アニメーション中にビューが頭がおかしくなったので、スクロールしようとしているときに少し傾けたいだけでした。Universal-Image-Library を使用してアニメーションを処理しています。ビューを傾けるときに 3D の外観を実現したいと考えています。
最初の写真は、私が欲しいものです。
しかし、下のこの写真は、私が持っているものです。以下のビューは頭がおかしくなりました。
private void rotateLeftFrag(View af) {
if (af != null) {
ObjectAnimator.ofFloat(af, "rotationY", 5, 0)
.setDuration(100).start();
}
}
ObjectAnimator com.nineoldandroids.animation.ObjectAnimator.ofFloat(Object target, String
propertyName, float... values)
ビューのスムーズなアニメーションまたはタイトル付けを実現するために、これに対する解決策はありますか? ありがとう
アップデート:
float density = getResources().getDisplayMetrics().density;
float scale = getResources().getDisplayMetrics().density;
af.setCameraDistance(density * scale);
ObjectAnimator.ofFloat(af, "rotationY", .5f, 0).setDuration(500).start();