use the primary color for selecting tablayout current item

This commit is contained in:
tibbi 2017-07-31 22:24:48 +02:00
parent 05da8af5e0
commit b10306a9b9

View file

@ -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?) {
}