获取onStopTrackingTouch的进度,而不是onbarbar中的onProgressChanged [英] get progress in onStopTrackingTouch not onProgressChanged in seekbar
本文介绍了获取onStopTrackingTouch的进度,而不是onbarbar中的onProgressChanged的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Android开发的新手,
我使用 onProgressChanged
获取当前进度,因为progress是函数的参数。
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.
提前致谢。
推荐答案
OnSeekBarChangeListener中定义的
。 onStopTrackTouch
方法当用户停止滑动 SeekBar
(即已完成触摸手势)并提供最终值时,将调用
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".
这篇关于获取onStopTrackingTouch的进度,而不是onbarbar中的onProgressChanged的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文