Currently I am using this selector:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@color/green" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@color/green" /> <!-- focused -->
</selector>
I want my to set default drawable for my button in case it is not pressed and not focused. How should I modify my selector to do this?
Try this: