title: Contextual/override theme color
body: <p>I'm facing a problem and i tried several ways to face it, still unsuccessful. </p>
  
  <p>My app is using multiple themes like : Halloween, Chirstmas, etc and i'm using some colors attributes on widget like TabLayout background, Text Color, etc. to contextualized the app.</p>
  
  <p>The question is : <strong>how do I use the same colors attributes with differentes values depending of a Theme context ?</strong></p>
  
  <p>So, basically here's the normal ways to declare colors : </p>
  
  <pre><code>&lt;color name="mapMarkerSelectedTextColor"&gt;@android:color/white&lt;/color&gt;
  &lt;color name="mapLoadingIndicatorColor"&gt;@color/white&lt;/color&gt;
  </code></pre>
  
  <p>But, theme and colors are <em>immutable</em> so I thought, maybe I can override those colors inside each theme like : </p>
  
  <pre><code>    &lt;item name="mapMarkerUnselectedTextColor"&gt;@color/christmas_red&lt;/item&gt;
      &lt;item name="mapMarkerSelectedTextColor"&gt;@color/white&lt;/item&gt;
  </code></pre>
  
  <p>=> unsuccessful</p>
  
  <p>Other lead, declare those colors as attributes : </p>
  
  <pre><code>&lt;attr name="mapLoadingIndicatorColor" format="reference|color" /&gt;
  &lt;attr name="map_autocomplete_accent_color" format="reference|color" /&gt;
  </code></pre>
  
  <p>And use theme in my XML like this : "<code>?attr/mapLoadingIndicatorColor</code>". 
  But this features is only allowed since <strong>Lollipop</strong> version and cause crashs before.</p>
  
  <p>I've reading a lot about theme customisation, color overriding, but never found a clear solution about this situation.</p>
  
  <p>Thanks anyway. </p>