is there any way to putting my custom buttons in one XML file in android?
<p>I'm developing an android application that contain many custom buttons.  Do I need to make an .xml file for each one or there is a way of putting all of them in one .xml file?</p>

<pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android" &gt;
 &lt;item android:state_pressed="true" android:drawable="@drawable/father2" &gt;&lt;/item&gt;
   &lt;item android:drawable="@drawable/father" &gt;&lt;/item&gt;
</code></pre>

<p></p>

<p>Can I use this code for multiple custom buttons in one xml file?</p>

<pre><code>&lt;animation-list xmlns:android="http://schemas.android.com/apk/res/android" 
android:oneshot="false" &gt;
&lt;item android:drawable="@drawable/brother1" android:duration="200"/&gt;
&lt;item android:drawable="@drawable/brother2" android:duration="200"/&gt;
&lt;item android:drawable="@drawable/brother3" android:duration="200"/&gt;
&lt;item android:drawable="@drawable/brother4" android:duration="200"/&gt;
&lt;item android:drawable="@drawable/brother5" android:duration="200"/&gt;
</code></pre>

<p></p>

<p>And I also have an animated list; can I use multiple animated lists in one xml file?</p>
