Bubble-Picker icon indicating copy to clipboard operation
Bubble-Picker copied to clipboard

Selected and not selected.

Open zirouan opened this issue 8 years ago • 5 comments

Hello.

Is it possible to tell background of the circle and color of the text for selecting and not selected?

Ex:

I want all the balls to be white and the text color red. When selecting, I want the selected ball to be in red and the text in white.

Is that possible?

Thank you.

zirouan avatar Sep 15 '17 19:09 zirouan

Would be nice to have some more options in the library, options like:

  • setBubbleSize to be dynamic depending on the text that is in the bubble
  • setTextColorSelected
  • setTextColorUnselected
  • setBackgroundDrawableSelected
  • setBackgroundDrawableUnselected
  • setBubbleExpandFactorOnSelect (where expand factor 0f should also be accepted)

rubinbasha avatar Jul 10 '18 15:07 rubinbasha

Yes, you can change text color and item color in Item.kt file. Let me know if you need an example here is the sample which I have customized on this library. bubble picker

lazy-coder-10 avatar Mar 11 '21 06:03 lazy-coder-10

@lazy-coder-10 can you please provide sample code for the same

deshmukhdhiraj avatar May 12 '22 12:05 deshmukhdhiraj

Yes, you can change text color and item color in Item.kt file. Let me know if you need an example here is the sample which I have customized on this library. bubble picker

@lazy-coder-10 could you provide some sample code for changing the text color, please!

vtproduction avatar Jun 30 '22 09:06 vtproduction

you can make the following changes on current libs

if(withImage){ drawText(canvas, pickerItem.selectedTextColor ?: Color.BLACK) }else{ drawText(canvas, pickerItem.textColor ?: Color.WHITE) }

lazy-coder-10 avatar Sep 27 '22 08:09 lazy-coder-10