“大”微调器的滚动条

发布于 2024-10-17 01:56:44 字数 81 浏览 8 评论 0原文

我有一个包含大量项目的旋转器,因此简单的滚动对于用户来说非常慢。我想在 ScrollView 中使用“大”可触摸滚动条或类似的滚动条。我该怎么做呢?

I have a spinner with huge amount of items, so the simple scrolling is very slow for user. I want to use "Big" touchable scrollbar or it like in ScrollView. How can I do it?

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

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

发布评论

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

评论(2

以歌曲疗慰 2024-10-24 01:56:44

我有一个装有大量物品的旋转器

这是您问题的一部分。 :) 将 Spinner 视为类似于桌面或 Web UI 中的下拉框。没有用户愿意使用它来搜索“大量的项目”。那不是他们的目的。

考虑将这个特定的选择过程分解到它自己的对话框中,甚至可能分解到它自己的活动中。从那里您可以提供更丰富的界面来进行此选择,其中可能包括启用快速滚动的 ListView(如果适配器实现 SectionIndexer 然后快速滚动将让用户轻松地在各部分之间跳转,)并且可能是一个永久文本字段,以便用户可以实时过滤内容下降到更易于管理的事情。

I have a spinner with huge amount of items

This is part of your problem. :) Think of Spinners as being similar to dropdown boxes in desktop or web UIs. No user wants to use one to search through "a huge amount of items." That's not what they're for.

Consider breaking out this particular selection process into its own Dialog or possibly even its own Activity. From there you can offer a much richer interface for making this choice, which might include a ListView with fast scrolling enabled, (if the adapter implements SectionIndexer then fast scrolling will let the user jump between sections easily,) and maybe a permanent text field so that the user can live-filter content down to something more manageable.

南…巷孤猫 2024-10-24 01:56:44

布局的 listview 元素应该能够使用以下属性:

android:fastScrollEnabled

The listview element of your layout should be able to use the attribute of:

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