We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原因是position这个变量的值引起的,修正也很简单: if(position<=1&&position>=0){ ViewHelper.setPivotX(view, 0); ViewHelper.setPivotY(view, view.getMeasuredHeight() * 0.5f); ViewHelper.setRotationY(view, 90f * position); }else if(position<0&&position>=-1){ ViewHelper.setPivotX(view, view.getMeasuredWidth()); ViewHelper.setPivotY(view, view.getMeasuredHeight() * 0.5f); //只在Y轴做旋转操作 ViewHelper.setRotationY(view, 90f * position); }
The text was updated successfully, but these errors were encountered:
谢谢
Sorry, something went wrong.
No branches or pull requests
原因是position这个变量的值引起的,修正也很简单:
if(position<=1&&position>=0){
ViewHelper.setPivotX(view, 0);
ViewHelper.setPivotY(view, view.getMeasuredHeight() * 0.5f);
ViewHelper.setRotationY(view, 90f * position);
}else if(position<0&&position>=-1){
ViewHelper.setPivotX(view, view.getMeasuredWidth());
ViewHelper.setPivotY(view, view.getMeasuredHeight() * 0.5f);
//只在Y轴做旋转操作
ViewHelper.setRotationY(view, 90f * position);
}
The text was updated successfully, but these errors were encountered: