- x
- The x coordinate of the gradient's center
- y
- The y coordinate of the gradient's center
Sets the center location of the gradient. The radius is honored only when the gradient type is set to GradientDrawable.RADIAL_GRADIENT or GradientDrawable.SWEEP_GRADIENT.
Note: changing this property will affect all instances of a drawable loaded from a resource. It is recommended to invoke GradientDrawable.mutate() before changing this property.