int color to hex android code example
Example 1: chnage hex color to int color in android
String white = "#ffffff";
int whiteInt = Color.parseColor(white);
Example 2: convert int color to hex android
String hexColor = String.format("#%06X", (0xFFFFFF & intColor));