get progress in onStopTrackingTouch not onProgressChanged in seekbar

最后都变了- 提交于 2019-12-07 05:30:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!