Android 滚动视图插值

发布于 2024-11-13 09:10:52 字数 89 浏览 8 评论 0原文

滚动视图上可以有插值器吗?我希望滚动时有漂亮的动画。

我在水平滚动视图中有列,我想用插值器或类似的东西滚动到每列的开头。

是否可以?

is it possible to have interpolator on scrollview? I'd like to have nice animation when scrolling.

I have columns in horizontalscrollview, and I want to scroll to begining of each column with interpolator or sth simmilar.

Is it possible?

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

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

发布评论

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

评论(1

驱逐舰岛风号 2024-11-20 09:10:52

使用 sdk 中的 Horizo​​ntalScrollView,不行。

该视图中使用的 Scroller 被声明为私有,并且不提供其他访问方法。

您可以从 sdk 中提取 Horizo​​ntalScrollView 代码并以这种方式进行更改。

Using the HorizontalScrollView from the sdk, no.

The Scroller used in that view is declared private and no other access methods are provided.

You could extract the HorizontalScrollView code from the sdk and make changes that way.

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