android convert int color to hex

android convert int color to hex

convert int color to hex color in android

refer to:‮ual‬tturi.com
String hexColor = String.format("#%06X", (0xFFFFFF & intColor));

convert hex color to int color in android

String red = "#ff0000"; // red  -- RRBBGG
int redInt = Color.parseColor(red);
Created Time:2017-09-03 13:58:10  Author:lautturi