我使用ListView
进行AlphaIndexer
SectionIndexer
实施。我想知道如果有任何方式可以自定义快速滚动时显示的Aplha-Indexer框,即更改其颜色,背景,文本字体/颜色等。如:
被修改
或者,当此框与FastScroll Thumb. like:
答案 0 :(得分:4)
如果您在应用程序中使用Theme
并参考res/val/style
及其变体styles-v11
或styles-v14
。那么您肯定可以实现自定义{{ 1}}。
将这些属性添加到您的父fastscroll indexer
属性中的styles-v11
或styles-v14
。
Theme
此处正在使用<style name="Theme.Zname" parent="@style/Theme.Sherlock.Light">
<item name="android:fastScrollPreviewBackgroundLeft">@drawable/_ics_fastscroll_label_left</item>
<item name="android:fastScrollPreviewBackgroundRight">@drawable/_ics_fastscroll_label_right</item>
</style>
,因此附加的样式ActionBarSherlock
和fastScrollPreviewBackgroundLeft
与fastScrollPreviewBackgroundRight
一起使用。
将这些放在API >11