-
public class ColorTemplateClass that holds predefined color integer arrays (e.g. ColorTemplate.VORDIPLOM_COLORS) and convenience methods for loading colors from resources.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intCOLOR_NONEpublic final static intCOLOR_SKIPpublic final static Array<int>LIBERTY_COLORSpublic final static Array<int>JOYFUL_COLORSpublic final static Array<int>PASTEL_COLORSpublic final static Array<int>COLORFUL_COLORSpublic final static Array<int>VORDIPLOM_COLORSpublic final static Array<int>MATERIAL_COLORS
-
Method Summary
Modifier and Type Method Description static intrgb(String hex)Converts the given hex-color-string to rgb. static intgetHoloBlue()Returns the Android ICS holo blue light color. static intcolorWithAlpha(int color, int alpha)Sets the alpha component of the given color. static List<Integer>createColors(Resources r, Array<int> colors)turn an array of resource-colors (contains resource-id integers) into anarray list of actual color integers static List<Integer>createColors(Array<int> colors)Turns an array of colors (integer color values) into an ArrayList ofcolors. -
-
Method Detail
-
getHoloBlue
static int getHoloBlue()
Returns the Android ICS holo blue light color.
-
colorWithAlpha
static int colorWithAlpha(int color, int alpha)
Sets the alpha component of the given color.
- Parameters:
alpha- 0 - 255
-
createColors
static List<Integer> createColors(Resources r, Array<int> colors)
turn an array of resource-colors (contains resource-id integers) into anarray list of actual color integers
- Parameters:
colors- an integer array of resource id's of colors
-
createColors
static List<Integer> createColors(Array<int> colors)
Turns an array of colors (integer color values) into an ArrayList ofcolors.
-
-
-
-