convert int color to hex android

Solutions on MaxInterview for convert int color to hex android by the best coders in the world

showing results for - "convert int color to hex android"
Luca
19 May 2020
1String white = "#ffffff";
2int whiteInt = Color.parseColor(white);
3
Elisa
16 Jul 2016
1String hexColor = String.format("#%06X", (0xFFFFFF & intColor));