package eic.beike.projectx.util;

/**
 * Created by Simon on 2015-10-06.
 */
public enum Colour {
    GREEN,
    BLUE,
    RED;


    public static Colour colour(int val) {
    if (val == 0) {
        return GREEN;
    } else if(val == 1) {
        return BLUE;
    } else if (val == 2) {
        return RED;
    }
    return GREEN;
   }
}

@@ -27,16 +27,47 @@
 .util;%0A%0A
+%0Aimport eic.beike.projectx.R;%0A%0A
 /**%0A * C
@@ -122,16 +122,17 @@
 olour %7B%0A
+%0A
     GREE
@@ -136,28 +136,373 @@
 REEN
-,%0A    BLUE,%0A    RED;
+(R.color.green),%0A    BLUE(R.color.blue),%0A    RED(R.color.red);%0A%0A    /**%0A     * Carried color code initiated at first use.%0A     */%0A    private  int androidColor;%0A    Colour(int androidColor)%7B%0A        this.androidColor = androidColor;%0A    %7D%0A%0A    /**%0A     * @return the value of the android color.%0A     */%0A    public int getAndroidColor()%7B return  this.androidColor; %7D
 %0A%0A%0A 

Make colours carry color codes.