【发布时间】:2012-04-30 14:03:41
【问题描述】:
谁能给我简单的建议,告诉我如何在 Android 列表视图的侧边栏上添加字母。 每当用户点击它时,它应该直接转到列表的字母。
如果有人有示例示例或演示代码,请分享。
【问题讨论】:
标签: android listview alphabetical
谁能给我简单的建议,告诉我如何在 Android 列表视图的侧边栏上添加字母。 每当用户点击它时,它应该直接转到列表的字母。
如果有人有示例示例或演示代码,请分享。
【问题讨论】:
标签: android listview alphabetical
我想这就是你要找的东西:http://twistbyte.com/tutorial/android-listview-with-fast-scroll-and-section-index
在 ListView 上设置 android:fastScrollEnabled="true" 会为您提供滚动抓取栏。然后,您可以通过实现SectionIndexer 来编辑您的arrayadapter,以在抓取栏旁边显示字母。
【讨论】: