Search code examples
javaandroidseekbar

get progress in onStopTrackingTouch not onProgressChanged in seekbar


I'm new to android development , I use onProgressChanged to get current progress as progress is a parameter of the function .

but I want to get only the final value of progress when user release the seekbar not the Immediate value.

Thanks in advance.


Solution

  • The onStopTrackTouch method defined in OnSeekBarChangeListener is called when the user stops sliding the SeekBar (i.e., has finished the touch gesture) and provides the "final value".