title: Theme dependent colors of selected widgets
body: <p>I'm pretty sure that this question already has been answered somewhere. It just seems too common. But I can't find the answer. I can't also figure out the solution.</p>
  
  <p>Here's the problem:</p>
  
  <p>I want one of my TableRow's to have different background color. It's simple, I just need to add</p>
  
  <pre><code>android:background="#123456" 
  </code></pre>
  
  <p>In TableRow's XML Declaration. But, I also want my application to have two themes. In the other theme, the TableRow should have different background color. I just can't find a way to define a color value inside a theme and use it. I would like to type something like this:</p>
  
  <pre><code>&lt;style name="Theme.MyApp" parent="@style/Theme.Light"&gt;
     &lt;color "my_cool_color"&gt;#123456&lt;/color&gt;
  &lt;/style&gt;
  
  &lt;style name="Theme.MyApp.Dark" parent="@style/Theme.Dark"&gt;
     &lt;color "my_cool_color"&gt;#654321&lt;/color&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>And, in TableRow's declaration:</p>
  
  <pre><code>android:background="@color/my_cool_color"
  </code></pre>
  
  <p>So, when I change the theme, the color of that one TableRow's background also changes. I've tried in many ways for many hours and didn't succeed... One thing I didn't try, was creating my own widget basing on TableRow and declaring a separate style for it - I think this should work, but it's just too heavy solution for so simple problem.</p>