Use ColorStateList on tab icons

This commit is contained in:
Phillip Hsu
2016-09-28 16:14:29 -07:00
parent 708edc042e
commit b53723a179
2 changed files with 29 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!--We can get away with this for all themes because they have the same accent color.-->
<!--If they are not the same, then we would have to resort to programmatically creating
a ColorStateList to get the themed ?colorAccent attribute. -->
<item android:state_selected="true"
android:color="@color/colorAccent"/>
<!--TODO: Make your own resource, because this belongs to BottomSheetTimePickers.-->
<item android:color="@color/icon_color_inactive_dark"/>
</selector>