Lines Matching defs:colors
159 * of colors for the gradient.
161 public GradientDrawable(Orientation orientation, int[] colors) {
162 this(new GradientState(orientation, colors));
406 * <p>Sets the colors used to draw the gradient. Each color is specified as an
407 * ARGB integer and the array must contain at least 2 colors.</p>
412 * @param colors 2 or more ARGB colors
417 public void setColors(int[] colors) {
418 mGradientState.setColors(colors);
701 final int[] colors = st.mColors;
702 if (colors != null) {
744 colors, st.mPositions, Shader.TileMode.CLAMP));
755 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];
1103 GradientState(Orientation orientation, int[] colors) {
1105 setColors(colors);
1175 public void setColors(int[] colors) {
1177 mColors = colors;