2

を使用したListViewwithAlphaIndexer実装がありSectionIndexerます。高速スクロール中に表示されるAplha-Indexerボックスをカスタマイズする方法があるかどうか、つまり、色、背景、テキストのフォント/色などを変更する方法があるかどうか疑問に思っていました。

ここに画像の説明を入力

編集済み OR、このボックスが隣接している場合FastScroll Thumb. like:

ここに画像の説明を入力

4

1 に答える 1

4

Themeを参照してアプリケーション内で 使用している場合res/val/style、それはバリアントstyles-v11またはです。その後、styles-v14確実にカスタマイズを実現でき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ため、スタイルfastScrollPreviewBackgroundLeftfastScrollPreviewBackgroundRightが追加されて で動作し API >11ます。

これらを中に入れてdrawable/_ics_fastscroll_label_left

_ics_fastscroll_label_left

于 2014-06-12T05:53:57.790 に答える