When the layout loads, all buttons would have default state/bg (without state in selector). When the button is pressed, the background for that button would change to button_pressed="true" and for all the others too button_pressed="false". Is it possible?
With this code a default background is button_pressed="false" item.
<?xml version="1.0" encoding="UTF-8" ?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- pressed -->
<item
android:state_pressed="true"
android:drawable="@drawable/buttonClicked" />
<item
android:state_pressed="false"
android:drawable="@drawable/buttonNotClicked" />
<item
android:drawable="@drawable/button" />
</selector>