I have default icon which colored by black, it useful when open app at daylight theme. But in dark theme, whole app background turn to dark grey, i want make the icon tint color to white. but not applied.
here my existing styles to override tint color on textview, might can be used as reference
values/styles.xml
<!-- Style for TextView drawables -->
<style name="CustomTextView" parent="Widget.MaterialComponents.TextView">
<!-- Tint color for TextView drawables -->
<item name="android:drawableTint" tools:targetApi="m">@color/black</item>
</style>
values-night/styles.xml
<!-- Style for TextView drawables -->
<style name="CustomTextView" parent="Widget.MaterialComponents.TextView">
<!-- Tint color for TextView drawables -->
<item name="android:drawableTint" tools:targetApi="m">@color/white</item>
</style>
and here how I applied the style.
values/themes.xml
<!-- Custom Style for TextView drawables -->
<item name="android:textViewStyle">@style/CustomTextView</item>
I have default icon which colored by
black
, it useful when open app at daylight theme. But in dark theme, whole app background turn todark grey
, i want make the icon tint color to white. but not applied.here my existing styles to override tint color on textview, might can be used as reference
values/styles.xml
values-night/styles.xml
and here how I applied the style.
values/themes.xml
how to apply styles for
expandable-fab
?