启用 ScrollView 弹跳内容

发布于 2024-12-02 01:39:14 字数 110 浏览 4 评论 0原文

我有一个 ScrollView (还有 Horizo​​ntalScrollView ),上面有一些内容。

如果用户尝试超出可滚动内容的限制,我需要启用这些视图来弹回内容。我怎么做到这一点?

I have a ScrollView (and HorizontalScrollView also), with some content on then.

I need to enable these views to bounces the content if the user try to pass beyond the limit of the scrollable content. How I do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不羁少年 2024-12-09 01:39:14

在 API 级别 9 中,有 ScrollView.setOverScrollMode()。

In API Level 9 there is ScrollView.setOverScrollMode().

怪我闹别瞎闹 2024-12-09 01:39:14

http://www.techhui.com/group/android /forum/topics/support-bounce-property-for 这家伙似乎制作了一个具有弹跳行为的自定义水平滚动视图。

http://www.techhui.com/group/android/forum/topics/support-bounce-property-for this guy seems to have made a custom horizontalscrollview that has the bouncing behavior.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文