Why CustomButton results grey color? In R.color.blue and green and red are really red n blue and red. I'm trying to random colors of buttons within the colors red blue green from colors.xml.
public void CustomButton(int btnId) {
    Button btn = (Button) findViewById(btnId);
    int[] btnColor = { R.color.blue, R.color.green, R.color.red };
    Random random = new Random();
    int c = btnColor[random.nextInt(btnColor.length)];
    btn.setBackgroundColor(c);
}
 
     
    