Created
August 26, 2015 17:56
-
-
Save vinaysshenoy/aa6521b27d01a31f1f26 to your computer and use it in GitHub Desktop.
Android Color to hexString
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String hexColor = String.format("#%06X", (0xFFFFFF & intColor)); //Without alpha | |
String hexColor = String.format("#%08X", (0xFFFFFFFF & intColor)); //With alpha(Not tested) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment