You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* 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();
}
The text was updated successfully, but these errors were encountered:
/**
* 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();
}
The text was updated successfully, but these errors were encountered: