highlight the currently selected letter at letter fastscrollers

This commit is contained in:
tibbi 2021-02-14 23:10:38 +01:00
parent f7bcf434b1
commit 73962e0957
2 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,7 @@ dependencies {
implementation 'com.simplemobiletools:commons:5.33.30' implementation 'com.simplemobiletools:commons:5.33.30'
implementation 'joda-time:joda-time:2.10.1' implementation 'joda-time:joda-time:2.10.1'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a' implementation 'com.github.tibbi:IndicatorFastScroll:c7ef0c82e5'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
kapt "androidx.room:room-compiler:2.2.6" kapt "androidx.room:room-compiler:2.2.6"

View File

@ -83,10 +83,11 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
} }
} }
letter_fastscroller?.textColor = textColor.getColorStateList()
fragment_fastscroller?.updatePrimaryColor() fragment_fastscroller?.updatePrimaryColor()
fragment_fastscroller?.updateBubblePrimaryColor() fragment_fastscroller?.updateBubblePrimaryColor()
letter_fastscroller?.textColor = textColor.getColorStateList()
letter_fastscroller?.pressedTextColor = adjustedPrimaryColor
letter_fastscroller_thumb?.fontSize = context.getTextSize() letter_fastscroller_thumb?.fontSize = context.getTextSize()
letter_fastscroller_thumb?.textColor = adjustedPrimaryColor.getContrastColor() letter_fastscroller_thumb?.textColor = adjustedPrimaryColor.getContrastColor()
letter_fastscroller_thumb?.thumbColor = adjustedPrimaryColor.getColorStateList() letter_fastscroller_thumb?.thumbColor = adjustedPrimaryColor.getColorStateList()