Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道这可能很简单,但我浪费了大量时间来了解如何在列表视图中显示滚动条。
看起来像这样:
感谢您的关注。
实际上,它与索引/分段 ListView 无关。只需将fastScrollEnabled属性添加到您的 ListView XML 并将其设置为true.
fastScrollEnabled
true
它是列表视图的分段索引。请参阅此示例 并参考此 SO答案