highlight current letter at the fastscroller

This commit is contained in:
tibbi
2021-07-25 18:35:30 +02:00
parent fe1958001a
commit b1aaba1d7e
2 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class ContactsFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
fragment_placeholder_2.setTextColor(adjustedPrimaryColor)
letter_fastscroller.textColor = textColor.getColorStateList()
letter_fastscroller.pressedTextColor = adjustedPrimaryColor
letter_fastscroller_thumb.setupWithFastScroller(letter_fastscroller)
letter_fastscroller_thumb.textColor = adjustedPrimaryColor.getContrastColor()
letter_fastscroller_thumb.thumbColor = adjustedPrimaryColor.getColorStateList()

View File

@ -40,6 +40,7 @@ class FavoritesFragment(context: Context, attributeSet: AttributeSet) : MyViewPa
(fragment_list?.adapter as? MyRecyclerViewAdapter)?.updateTextColor(textColor)
letter_fastscroller.textColor = textColor.getColorStateList()
letter_fastscroller.pressedTextColor = adjustedPrimaryColor
letter_fastscroller_thumb.setupWithFastScroller(letter_fastscroller)
letter_fastscroller_thumb.textColor = adjustedPrimaryColor.getContrastColor()
letter_fastscroller_thumb.thumbColor = adjustedPrimaryColor.getColorStateList()