martin-stone / hsv-alpha-color-picker-android

A color picker and a color preference for use in Android applications.
Apache License 2.0
290 stars 60 forks source link

Cannot acquire colors when called setPickerCount(n); where n>1 #19

Closed smedic closed 8 years ago

smedic commented 8 years ago

When trying to set multiple colors by using ColorPickerDialogBuilder, for instance: text color and background color, I cannot acquire set colors.

.setPositiveButton("ok", new ColorPickerClickListener() {
                @Override
                public void onClick(DialogInterface dialog, int selectedColor, Integer[] allColors) {
                       //how to get chosen colors?
                }
})

I can get selectedColor, but how to know which index is that? Is that 1st color, 2nd etc.

martin-stone commented 8 years ago

I think you've submitted this bug in the wrong repo. I don't recognise those classes and functions. This library doesn't work like that.

smedic commented 8 years ago

True, my mistake. Sorry. Remove this