Fomovet
Fomovet

Reputation: 323

How to listen to Seekbar thumb onClick events?

I would like to register a clickable event on the seekbar's thumb in order to trigger an event when the user has cliked it. Is it possible?Any ideas?Thanks in advance!

Upvotes: 0

Views: 689

Answers (1)

Vadivel
Vadivel

Reputation: 778

Override the OnTouchListener for the seekbar and only process the movement on the thumb when the MotionEvent is a move event.

event.getAction() == MotionEvent.ACTION_MOVE

Please refer the https://github.com/AnderWeb/discreteSeekBar

Upvotes: 2

Related Questions