Example usage for Java android.graphics LinearGradient fields, constructors, methods, implement or subclass
The text is from its open source code.
LinearGradient(float x0, float y0, float x1, float y1, @NonNull @ColorInt int colors[], @Nullable float positions[], @NonNull TileMode tile) Create a shader that draws a linear gradient along a line. | |
LinearGradient(float x0, float y0, float x1, float y1, @ColorInt int color0, @ColorInt int color1, @NonNull TileMode tile) Create a shader that draws a linear gradient along a line. |