答案很简单,您可以将应用的轮播更改为:
applyRotation(-1,0,90);和applyRotation(1,0,90);
这是您第一次调用它的时间,而在下半年调用它的时间,则使用以下命令:
if (mPosition > -1) {
mStartView.setVisibility(View.GONE);
mEndView.setVisibility(View.VISIBLE);
mEndView.requestFocus();
//rotation = new Rotate3dAnimation(90, 180, centerX, centerY, 310.0f, false);
rotation = new Rotate3dAnimation(-90, 0, centerX, centerY, 310.0f, false);
} else {
mEndView.setVisibility(View.GONE);
mStartView.setVisibility(View.VISIBLE);
mStartView.requestFocus();
rotation = new Rotate3dAnimation(-90, 0, centerX, centerY, 310.0f, false);
//rotation = new Rotate3dAnimation(90, 0, centerX, centerY, 310.0f, false);
}
我已经注释掉了旧的实现.