如何在Android ListView中检测过度滚动? [英] How to detect overscroll in Android ListView?

查看:99
本文介绍了如何在Android ListView中检测过度滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户过度滚动列表视图时,我想显示/隐藏一个视图.

I'd like to show/hide a view when the user over scroll the listview.

如何检测过度滚动?有听众吗? 我已经尝试过OnScrollListener,但是它只会通知onScrollStateChangedonScroll

How can I detect the over-scroll? Is there any listener? I've tried OnScrollListener but it only notifies about onScrollStateChanged and onScroll

推荐答案

您可以覆盖方法

You can override the method onOverScrolled, as it respond to the results of an over-scroll operation.

这篇关于如何在Android ListView中检测过度滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆