아래에서 언급 한 바와 같이 뷰 속성 애니메이터를 android에서 사용합니다. 대부분의 장치에서 잘 작동하지만 일부에서는 위에서 언급 한 오류가 발생합니다. 에뮬레이터에서도 항상 실패합니다. 객체 애니메이터와 동일한 문제가 있습니다. 애니메이션은 단일 뷰에 적용되면 작동하지만 여러 개의 하위가있는 컨테이너에는 적용되지 않습니다. 친절'오류 : Ambient Vertex Buffer Overflow !!! 사용 304, 총 260 'Android ViewPropertyAnimator
wordViewPropertyAnimator.rotationYBy(-90f).setDuration(resources.getInteger(R.integer.rotateAnimationHalf))
.setListener(new AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
wordViewPropertyAnimator.setListener(null);
wordViewPropertyAnimator.rotationYBy(-180f).setDuration(0).start();
wordViewPropertyAnimator.rotationYBy(-90f).
setDuration(resources.getInteger(R.integer.rotateAnimationHalf)).start();
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
})
.start();
ObjectAnimator objectAnimator=ObjectAnimator.ofFloat(wordView, View.ROTATION_Y, -90f); objectAnimator.setDuration(200); objectAnimator.start();