duanhong169 / ColorPicker

🎨 A color picker for Android. Pick a color using color wheel and slider (HSV & alpha).
Apache License 2.0
361 stars 82 forks source link

Cursor release trigger #8

Closed ViorelOnica closed 5 years ago

ViorelOnica commented 5 years ago

Hello !

Is there any method that will trigger the cursor release after selecting the color?

I tried using this, but onTouch never gets triggered

image

duanhong169 commented 5 years ago

Sorry, what do you mean about "cursor release"?

ViorelOnica commented 5 years ago

When you're dragging the finger over the color palette (rgb circle), onColor override gives logs until you lift up your finger off the palette. I want to receive only one log with the last selected color when you lift up your finger. :)

This is usually checked using setOnTouchListener, when motionEvent is ACTION_UP, but it doesn't work.