How to set up an alpha indexer while FastScrolling

I have a realization ListView

with AlphaIndexer

using SectionIndexer

. I was wondering if in any case it is possible to customize the Aplha-Indexer window shown on fast scrolling i.e. By changing its color, background, font / text color, etc. How:

enter image description here

Edited OR When this checkbox is next toFastScroll Thumb. like:

enter image description here

+2


source to share


1 answer


If you use Theme

inside your application with a link to res/val/style

and its variant styles-v11

or styles-v14

. Then you can complete the setup without any problem fastscroll indexer

.

Add these attributes to your styles-v11

or styles-v14

your parent attribute 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>

      



Here, since it uses ActionBarSherlock

, so the styles fastScrollPreviewBackgroundLeft

and fastScrollPreviewBackgroundRight

added to it, is working with API >11

.

Put them inside drawable/_ics_fastscroll_label_left

_ics_fastscroll_label_left

+4


source







All Articles