title: Create two separate themes in an app
body: <p>I've been using custom <code>styles</code> and I was doing fine but now I'm confused on how to use completely different <code>styles</code> for widgets such as <code>CompoundButtons</code>, <code>Spinners</code>, <code>ImageButton</code>s, etc.. I have custom <code>Buttons</code> made for each type and each has its own <code>drawable</code> depending on its state. That I have gotten figured out but I need two completely different <code>Themes</code> (ex. use meal_orange <code>ImageButton</code> when state is pressed and use meal_blue for <code>ImageButton</code> state pressed for my other <code>Theme</code>) depending on which of two customers the app is for. I've searched for this problem so either it isn't possible without two separate apps or I'm not searching the right terms or fully understanding <code>themes</code> (possibly both).</p>
  
  <p>A small example of what I currently have is in my <code>styles.xml</code></p>
  
  <pre><code>// these point to separate selector files to show the different states
  &lt;style name="MealButton" parent="@android:style/Widget.ImageButton"&gt;
      &lt;item name="android:background"&gt;@drawable/meal_button&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="CatButton" parent="@android:style/Widget.ImageButton"&gt;
      &lt;item name="android:background"&gt;@drawable/cat_button&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I originally created a custom <code>theme</code> with something like</p>
  
  <pre><code>&lt;style name="CustomActivityTheme" parent="@android:style/Theme.Holo.Light"&gt;
      &lt;item name="android:actionBarStyle"&gt;@style/MyActionBar&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>the <code>ActionBar</code> part is irrelevant because I created a custom bar but if I could do that and inside here dictate to use the above examples of the <code>ImageButton</code> styles then that would be great.</p>
  
  <p>I hope I explained this correctly. Can someone tell me if this is possible. I can't imagine I would need two separate versions of the app but maybe. I thought I could declare these <code>styles</code> inside the different <code>themes</code> but I didn't seem to be able to do that for <code>widgets</code>. </p>
  
  <p>Just to clarify, the question is how can I use that first chunk of code inside the second chunk and do that for two separate themes? Thanks!</p>