How To Convert Android Color Format?
I have a colorpicker dialog, where you can choose colors for a button, textcolor etc. If I log the choosen color, I get a -13459125 number which I dont know what RGB color is. I se
Its packed 4-bytes to an integer as 0xAARRGGBB
Your value (-13459125), is 0xFF32A14B, or
A=255 R=50 G=161 B=75 in decimal.
If you have a color c, you can get the components with:
int red = Color.red(c)
int green = Color.green(c)
Etc
You may like these posts
Post a Comment for "How To Convert Android Color Format?"