ColorPickerView icon indicating copy to clipboard operation
ColorPickerView copied to clipboard

Error color in colorEnvelope.getHexCode()

Open vallemar opened this issue 2 years ago • 0 comments

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

vallemar avatar Nov 01 '23 19:11 vallemar