I want to save app space with next idea. But I'm not sure if it possible.
I want to have selector:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/arrow_forward" android:state_enabled="true" />
<item android:drawable="@drawable/arrow_forward_disabled" android:state_enabled="false"/>
</selector>
Where arrow_forward
is png image and arrow_forward_disabled
is same image but with 70% opacity. I've tried to achieve it with layer-list
drawable but without success. Is there solution?