开发者

"Big" scrollbar for spinner

I have a spinner with huge amount of items, so the simple scrolling is very开发者_如何学JAVA 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

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.


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

android:fastScrollEnabled
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜