Skip to content
New issue

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

gradientCenterX,gradientCenterY不是dimension,应该是float #164

Closed
Sigasiiiiii opened this issue Dec 1, 2019 · 2 comments
Closed

Comments

@Sigasiiiiii
Copy link

/**
* Sets the position of the center of the gradient as a fraction of the
* width and height.
*


* The default value is (0.5, 0.5).
*


* Note: changing this property will affect all instances
* of a drawable loaded from a resource. It is recommended to invoke
* {@link #mutate()} before changing this property.
*
* @param x the X-position of the center of the gradient
* @param y the Y-position of the center of the gradient
*
* @see #mutate()
* @see #setGradientType(int)
* @see #getGradientCenterX()
* @see #getGradientCenterY()
*/
public void setGradientCenter(float x, float y) {
mGradientState.setGradientCenter(x, y);
mGradientIsDirty = true;
invalidateSelf();
}

@lygttpod
Copy link
Owner

lygttpod commented Dec 2, 2019

Thank you for your question,i will fix it on the next version

lygttpod added a commit that referenced this issue May 13, 2021
@lygttpod
Copy link
Owner

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants