本文介绍了如何在Android ListView中检测过度滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户过度滚动列表视图时,我想显示/隐藏一个视图.
I'd like to show/hide a view when the user over scroll the listview.
如何检测过度滚动?有听众吗?我已经尝试过OnScrollListener
,但是它只会通知onScrollStateChanged
和onScroll
How can I detect the over-scroll? Is there any listener?I've tried OnScrollListener
but it only notifies about onScrollStateChanged
and onScroll
推荐答案
您可以覆盖方法,因为它是respond to the results of an over-scroll operation.
You can override the method onOverScrolled, as it respond to the results of an over-scroll operation.
这篇关于如何在Android ListView中检测过度滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!