How about just passing in the value from R.color.<color> instead of having to define them in xml and in the enum?