“大"微调器的滚动条 [英] "Big" scrollbar for spinner

查看:77
本文介绍了“大"微调器的滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有大量项目的微调器,因此对于用户而言,简单的滚动非常慢.我想使用大"可触摸滚动条,或者像在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?

推荐答案

我的微调器中有很多物品

I have a spinner with huge amount of items

这是您的问题的一部分. :)认为微调器类似于桌面或Web UI中的下拉框.没有用户愿意使用它来搜索大量项目".那不是他们的目的.

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.

考虑将这个特定的选择过程分解为自己的对话框,甚至可能分解为自己的活动.从那里,您可以提供一个更丰富的界面来进行此选择,其中可能包括启用了快速滚动的ListView(如果适配器实现

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.

这篇关于“大"微调器的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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