如何实现滚动视图中的反弹? [英] How to implement bouncing in scrollview?

查看:159
本文介绍了如何实现滚动视图中的反弹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实现我所用简单的简单数据库应用程序scrollview.Its工作fine.But滚动视图不反弹。

I have implement simple one simple database application in which I have used scrollview.Its work fine.But scrollview is not bounce.

是否有可能启用滚动视图反弹?

Is it possible to enable bounce in scrollview?

先谢谢了。

推荐答案

警告:我真的不知道如何做到这一点,我只是在想我怎么会处理这...

Warning: I don't really know how to do this, I'm just thinking of how I would approach this...

你试过穿上视图两端空?这样,它看起来就像用户正在滚动过去的开始/结束。如果有可能涉及到一个监听器,你可以测试一下,看看如果用户是在0-10%范围内或90-100%的范围内,如果是这样,反弹回去?\\

Have you tried to put empty space on both ends of the view? That way it would look like the user is scrolling past the beginning/end. If there's a listener involved maybe you could test to see if the user is in the 0-10% range or the 90-100% range, and if so, "bounce" them back?\

编辑:我发现这篇文章:支持反弹性质了滚动Android中

I found this article: Support Bounce Property for Scrollview in Android

这篇关于如何实现滚动视图中的反弹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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