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
已经过测试验证。P268 页中提到 View 动画,scale、rotate的pivotX、pivotY轴心点默认都为0,而不是view的中心点。
RotateAnimation 的构造函数
public RotateAnimation(float fromDegrees, float toDegrees) { mFromDegrees = fromDegrees; mToDegrees = toDegrees; // 默认为0.0,也就是view的左上点坐标 mPivotX = 0.0f; mPivotY = 0.0f; }
ScaleAnimation 的构造函数
public ScaleAnimation(float fromX, float toX, float fromY, float toY) { mResources = null; mFromX = fromX; mToX = toX; mFromY = fromY; mToY = toY; mPivotX = 0; mPivotY = 0; }
The text was updated successfully, but these errors were encountered:
I agree
Sorry, something went wrong.
I saw that in the resourceCode
No branches or pull requests
已经过测试验证。P268 页中提到 View 动画,scale、rotate的pivotX、pivotY轴心点默认都为0,而不是view的中心点。
RotateAnimation 的构造函数
ScaleAnimation 的构造函数
The text was updated successfully, but these errors were encountered: