ColorPickerView
ColorPickerView copied to clipboard
Error color in colorEnvelope.getHexCode()
Please complete the following information:
- Library Version2.3.0
- Affected Device(s) emulator
When I create a ColorPickerDialog and add a setPositiveButton the getHexCode() method of colorEnvelope returns another code.
Example:
colorEnvelope.getColor() -> -261120
colorEnvelope.getHexCode() -> FFFC0431
Integer.toHexString(colorEnvelope.getColor()).substring(2) -> fc0431
Integer.toHexString(colorEnvelope.getColor()).substring(2) I found it here and it seems to work fine https://stackoverflow.com/a/6544482/6015400