java.lang.Object | ||
↳ | android.graphics.Shader | |
↳ | android.graphics.RadialGradient |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a shader that draws a radial gradient given the center and radius.
| |||||||||||
Create a shader that draws a radial gradient given the center and radius.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.graphics.Shader
| |||||||||||
From class
java.lang.Object
|
Create a shader that draws a radial gradient given the center and radius.
centerX | The x-coordinate of the center of the radius |
---|---|
centerY | The y-coordinate of the center of the radius |
radius | Must be positive. The radius of the circle for this gradient. |
colors | The colors to be distributed between the center and edge of the circle |
stops | May be null . Valid values are between 0.0f and
1.0f . The relative position of each corresponding color in
the colors array. If null , colors are distributed evenly
between the center and edge of the circle. |
tileMode | The Shader tiling mode |
Create a shader that draws a radial gradient given the center and radius.
centerX | The x-coordinate of the center of the radius |
---|---|
centerY | The y-coordinate of the center of the radius |
radius | Must be positive. The radius of the circle for this gradient |
centerColor | The color at the center of the circle. |
edgeColor | The color at the edge of the circle. |
tileMode | The Shader tiling mode |