One issue I am facing is with a button that has a drawable XML file set as the background. The purpose of this is to change the background color and outline of the button when it is pressed. However, the problem is that these changes only last for a second and then revert back to their original state. Is there a way to make the changed colors stay until a different button is pressed?
<item android:state_pressed="true" >
<shape>
<solid
android:color="#99000000" />
<stroke
android:width="1dp"
android:color="#489d73" />
</shape>
</item>
<item>
<shape>
<gradient
android:startColor="#66000000"
android:endColor="#66000000"
android:angle="270" />
</shape>
</item>