Issue
I created a custom selector for button text color:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?android:attr/textColorPrimary" android:state_enabled="true" />
<item android:alpha="0.38" android:color="?android:attr/textColorPrimary" />
</selector>
However, I would like to use ?android:attr/textColorPrimary
for the color in night theme and ?android:attr/colorPrimary
in day theme. How can I achieve this?
Solution
create folder drawable-night
at put night-variant in it, leave untouched file in common drawable
folder
Answered By - snachmsm
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.