title: Changing values of an app theme at runtime
body: <p>My app requires to change certain atributes of the app theme (like colorPrimaryDark, colorAccent)</p>
  
  <pre><code>&lt;item name="colorPrimaryDark"&gt;@color/i_need_runtime&lt;/item&gt;
  &lt;item name="colorPrimaryDark"&gt;@color/me_too&lt;/item&gt;
  </code></pre>
  
  <p>But these changes must be done at runtime, because these values are coming via webservice (json). Because there isn't any api to change the values of a theme at runtime, I think that the only way would be changing the resources values defined at xml via Java Reflection, but I don't know how to do it because in R.java there are defined ids, not the value itself. </p>
  
  <p>Any thoughts?</p>