【问题标题】:How to implement Alphabets in the sidebar of android listview如何在android listview的侧边栏中实现Alphabets
【发布时间】:2012-04-30 14:03:41
【问题描述】:

谁能给我简单的建议,告诉我如何在 Android 列表视图的侧边栏上添加字母。 每当用户点击它时,它应该直接转到列表的字母。

如果有人有示例示例或演示代码,请分享。

【问题讨论】:

    标签: android listview alphabetical


    【解决方案1】:

    我想这就是你要找的东西:http://twistbyte.com/tutorial/android-listview-with-fast-scroll-and-section-index

    在 ListView 上设置 android:fastScrollEnabled="true" 会为您提供滚动抓取栏。然后,您可以通过实现SectionIndexer 来编辑您的arrayadapter,以在抓取栏旁边显示字母。

    【讨论】:

      猜你喜欢
      • 2017-10-13
      • 2010-11-18
      • 1970-01-01
      • 1970-01-01
      • 2017-07-16
      • 2013-03-13
      • 1970-01-01
      • 1970-01-01
      • 2016-10-15
      相关资源
      最近更新 更多