I have 4 buttons and I want to give everyone a pressed effect but I would like to know if I can create 4 different codes in a single Resource File or I have to create 4 Resource Files for each button this is the code of a resource file that bears the name "animaboton.xml"
<?xml version="1.0" encoding="utf-8"?>
<item android:drawable="@drawable/btnpress" android:state_pressed="true"></item>
<item android:drawable="@drawable/btnsinpress"></item>
in the XML I send it to call% android:background="@drawable/animaboton"