如何检测overscroll android系统中? [英] How to detect overscroll in android?

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

问题描述

我想显示/隐藏视图当用户在滚动列表视图。

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

推荐答案

您可以覆盖的方法<一href="http://developer.android.com/reference/android/widget/AbsListView.html#onOverScrolled%28int,%20int,%20boolean,%20boolean%29">onOverScrolled,因为它回应过滚动操作的结果。

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

这篇关于如何检测overscroll android系统中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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