One selector for multiple buttons with different colors
<p>I want to create a set of 5 vertical buttons for a menu. Each button is a different color, and I am using a RadioGroup and RadioButtons for the buttons themselves. Is there a way I can use the same selector for all 5 buttons but just change the background color?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:drawable="@android:color/darker_gray" android:state_checked="true"/&gt;
    &lt;item android:drawable="@color/blue"/&gt;
&lt;/selector&gt;
</code></pre>

<p>This is what my selectors look like currently, "@color/blue" changes for each button.</p>

<pre><code>    &lt;RadioGroup
        android:id="@+id/menu_main_group" 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignTop="@+id/menu_side_bar"
        android:layout_alignLeft="@+id/menu_side_bar"
        android:layout_marginLeft="@dimen/menu_main_left_margin"
        android:layout_marginTop="@dimen/menu_main_top_margin" &gt;

        &lt;RadioButton
            style="@style/menu_main_button"
            android:id="@+id/button1"
            android:background="@drawable/selector1"
            android:text="@string/button1" /&gt;

        &lt;RadioButton
            style="@style/menu_main_button"
            android:id="@+id/button2"
            android:background="@drawable/selector2"
            android:text="@string/button2" /&gt;

        &lt;RadioButton
            style="@style/menu_main_button"
            android:id="@+id/button3"
            android:background="@drawable/selector3"
            android:text="@string/button3" /&gt;

        &lt;RadioButton
            style="@style/menu_main_button"
            android:id="@+id/button4"
            android:background="@drawable/selector4"
            android:text="@string/button4" /&gt;

        &lt;RadioButton
            style="@style/menu_main_button"
            android:id="@+id/button5"
            android:background="@drawable/selector5"
            android:text="@string/button5" /&gt;

    &lt;/RadioGroup&gt;
</code></pre>

<p>This is the xml layout where I'll be using the buttons.</p>
