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.
When trying to set multiple colors by using ColorPickerDialogBuilder, for instance: text color and background color, I cannot acquire set colors.
I can get selectedColor, but how to know which index is that? Is that 1st color, 2nd etc.