So Im making an app that converts RGB Colors to Hexadecimal (ex. #FFFFFF). I have three edittext for Red, Green and Blu. When I input values for every edittext like (255,255
Just pass an array of 3 colors red, green, blue to this function
int[] color={200,170,100}; btn.setBackgroundColor(getHexColor(color)); public static int getHexColor(int[] color) { return android.graphics.Color.rgb(color[0], color[1], color[2]); }