Button Background Selector
put this at the end
item android:drawable="@color/red"
i mean as the third option, it will work. android checks the xml conditions from the start, the first tag doesn't have any condition, so it will always pick red, so you have put conditions first and then the default one.