title: How to reference from drawable to style
body: <p>My app with tabs has two themes. In each theme tabs have different images in selected and unselected state. How I can properly reference to image by theme?</p>
  
  <p>For example. I have in themes.xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;style name="LightTheme" parent="@android:style/Theme.Light"&gt;
      &lt;item name="tabShows"&gt;@drawable/ic_tab_shows_unselected_light&lt;/item&gt;
      &lt;item name="tabShowsSelected"&gt;@drawable/ic_tab_shows_selected_light&lt;/item&gt;
      &lt;item name="tabNews"&gt;@drawable/ic_tab_news_selected_light&lt;/item&gt;
      &lt;item name="tabNewsSelected"&gt;@drawable/ic_tab_news_unselected_light&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="DarkTheme" parent="@android:style/Theme.Black"&gt;
      &lt;item name="tabShows"&gt;@drawable/ic_tab_shows_unselected_dark&lt;/item&gt;
      &lt;item name="tabShowsSelected"&gt;@drawable/ic_tab_shows_selected_dark&lt;/item&gt;
      &lt;item name="tabNews"&gt;@drawable/ic_tab_news_selected_dark&lt;/item&gt;
      &lt;item name="tabNewsSelected"&gt;@drawable/ic_tab_news_unselected_dark&lt;/item&gt;
     &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>Also I have a tab_shows.xml and tab_news.xml</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item  android:state_selected="true" android:drawable="@drawable/ic_tab_shows_selected_light"/&gt;
  &lt;item  android:state_selected="false" android:drawable="@drawable/ic_tab_shows_unselected_light" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>How I can reference to needed image in selector according to current theme?
  This not work for me</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item  android:state_selected="true" android:drawable="?tabShowsSelected"/&gt;
  &lt;item  android:state_selected="false" android:drawable="?tabShows" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>In layout files this works, I mean reference to style via ?styleName</p>