问题
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.
回答1:
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".
来源:https://stackoverflow.com/questions/13440965/get-progress-in-onstoptrackingtouch-not-onprogresschanged-in-seekbar