I would like to create an xml selector of styles.
Basically i would do something like that:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
style="@style/filter_btn"/>
<item android:state_pressed="false"
style="@style/transparent" />
</selector>
Could someone help me ?
Selectors work only for drawables, not styles.
Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With