mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-01 20:16:43 +01:00
use the primary color for selecting tablayout current item
This commit is contained in:
parent
05da8af5e0
commit
b10306a9b9
@ -22,6 +22,7 @@ class SecurityDialog(val activity: SimpleActivity, val requiredHash: String, val
|
||||
val viewPager = findViewById(R.id.dialog_tab_view_pager) as MyDialogViewPager
|
||||
val textColor = context.config.textColor
|
||||
dialog_tab_layout.setTabTextColors(textColor, textColor)
|
||||
dialog_tab_layout.setSelectedTabIndicatorColor(context.config.primaryColor)
|
||||
dialog_tab_layout.addOnTabSelectedListener(object : TabLayout.OnTabSelectedListener {
|
||||
override fun onTabReselected(tab: TabLayout.Tab?) {
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user