Android kelas warna
Color.YELLOW
android developer
Color.YELLOW
int color = ContextCompat.getColor(context, R.color.someColor);
int red = Color.red(color);
int blue = Color.blue(color);
int green = Color.green(color);
int alpha = Color.alpha(color);