Fix selected tab in sheets not being the accent color

(cherry picked from commit 3aeac7e7b598825a9914db9f2d112d1ac7394646)
This commit is contained in:
arkon 2021-02-07 10:54:35 -05:00 committed by Jobobby04
parent 72b0fcca9d
commit a616193cdf
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,6 @@
Ensures visibility on top of the background color. Ensures visibility on top of the background color.
--> -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?attr/colorOnBackground" android:state_selected="true"/> <item android:color="?attr/colorAccent" android:state_selected="true"/>
<item android:alpha="0.60" android:color="?attr/colorOnBackground"/> <item android:alpha="0.60" android:color="?attr/colorOnBackground"/>
</selector> </selector>

View File

@ -22,6 +22,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:tabTextColor="@color/tabs_selector_background" app:tabTextColor="@color/tabs_selector_background"
app:tabIndicatorColor="?attr/colorAccent"
app:tabGravity="fill" app:tabGravity="fill"
app:tabMode="fixed" /> app:tabMode="fixed" />