Package 

Class ColorTemplate


  • 
    public class ColorTemplate
    
                        

    Class that holds predefined color integer arrays (e.g. ColorTemplate.VORDIPLOM_COLORS) and convenience methods for loading colors from resources.

    • Method Detail

      • rgb

         static int rgb(String hex)

        Converts the given hex-color-string to rgb.

      • 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.