Android:Listview反弹到scrollview [英] Android: Listview's bounce to scrollview

查看:62
本文介绍了Android:Listview反弹到scrollview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以将ListView的弹跳效果添加到常规的scrollview中吗? 弹跳是指您到达列表底部时的橡皮筋效果.

Any way of adding ListView's bounce effect to regular scrollview? By bounce I mean the rubber band like effect when you hit the bottom of the list.

推荐答案

如果您创建扩展了ScrollView API的外观,您应该能够覆盖onOverScrolled()方法. >类.经过快速的Google搜索后,我发现了此链接,看起来这就是您要尝试的方法. ..我确实相信,此方法是在Android 2.3.1中添加的,因此您将仅限于运行该方法的设备.

By the looks of things in the ScrollView API you should be able to override the onOverScrolled() method if you create a custom view that extends the ScrollView class. After doing a quick Google search I came across this link and it looks as if this is what you are trying to do... I do believe this method was added in Android 2.3.1 though so you will be limited to devices running that.

这篇关于Android:Listview反弹到scrollview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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