skydoves / ColorPickerView

🎨 Android colorpicker for getting colors from any images by tapping on the desired color.
Apache License 2.0
1.6k stars 211 forks source link

Can I get the color change during the listening process? #1

Closed NicodeLee closed 5 years ago

NicodeLee commented 7 years ago

Thanks for you job.

NicodeLee commented 7 years ago

I get it,thanks.

ayushigpt commented 7 years ago

i want that when i click on textview(in which i saved the background color),indicator of color picker itself move on that color which i previously saved .How i can achieve it by your library??

skydoves commented 7 years ago

@ayushigpt I'm sorry about the late reply. on v1.0.1 you can move selector's points as using colorPickerView.setSelectorPoint(int x, int y) method.

ayushigpt commented 7 years ago

@skydoves colorPickerview.setSelectorPoint(int x,int y) method not working fine when i touch the imageview (where i saved my color) to find that color on palette but the selector of palette going outside the palette .Selector should be remain inside the palette and indicate that color but i should not Please reply as soon as possible

skydoves commented 7 years ago

I'm sorry about the late reply.It fixed. Thank you.

rameshjilla commented 7 years ago

Hi , How can i get the X and Y coordinates on colorlistener?

ayushigpt commented 7 years ago

@rameshjilla You can get it by using setOnTouchListener and onTouch have parameter MotionEvent.From MotionEvent object you can getX() and getY()