Lines Matching refs:colors
160 * of colors for the gradient.
162 public GradientDrawable(Orientation orientation, int[] colors) {
163 this(new GradientState(orientation, colors));
407 * <p>Sets the colors used to draw the gradient. Each color is specified as an
408 * ARGB integer and the array must contain at least 2 colors.</p>
413 * @param colors 2 or more ARGB colors
418 public void setColors(int[] colors) {
419 mGradientState.setColors(colors);
707 final int[] colors = st.mColors;
708 if (colors != null) {
750 colors, st.mPositions, Shader.TileMode.CLAMP));
758 level * st.mGradientRadius, colors, null,
764 int[] tempColors = colors;
769 final int length = colors.length;
773 System.arraycopy(colors, 0, tempColors, 0, length);
774 tempColors[length] = colors[length - 1];
1106 GradientState(Orientation orientation, int[] colors) {
1108 setColors(colors);
1178 public void setColors(int[] colors) {
1180 mColors = colors;