我如何取消及QUOT;拖"在Android搜索栏运动? [英] How do I cancel a "drag" motion on an Android Seekbar?
本文介绍了我如何取消及QUOT;拖"在Android搜索栏运动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在读通过的文档,我想不出如何取消在搜索栏拖,一旦门槛已经完成。
I've been reading through the docs, and I cannot figure out how to cancel a "drag" on a Seekbar once the bar has been completed.
例如,当我拖动条到最后,我想一个事件的发生。但是,如果我把我的手指在屏幕上,然后拖动我的手指过去的搜索栏,它使发射了,即使我重新搜索栏的进步活动。我怎样才能prevent这个动作的发生?
For example, when I drag the bar to the end, I want an event to happen. However, if I keep my finger on the screen and drag my finger past the SeekBar, it keeps firing off that event even after I reset the progress of the Seekbar. How can I prevent this action from happening?
感谢
推荐答案
尝试this..it工作正常。
Try this..it works fine..
mSeekBar.setEnabled(false);
这篇关于我如何取消及QUOT;拖"在Android搜索栏运动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文