title: How to retrieve style attributes programmatically from styles.xml
body: <p>Currently I'm using either a WebView or a TextView to show some dynamic data coming from a webservice in one of my apps. 
  If the data contains pure text, it uses the TextView and applies a style from styles.xml.
  If the data contains HTML (mostly text and images) it uses the WebView.</p>
  
  <p>However, this WebView is unstyled. Therefor it looks a lot different from the usual TextView.
  I've read that it's possible to style the text in a WebView simply by inserting some HTML directly into the data. This sounds easy enough, but I would like to use the data from my Styles.xml as the values required in this HTML so I won't need to change the colors et cetera on two locations if I change my styles.</p>
  
  <p>So, how would I be able to do this? I've done some extensive searching but I have found no way of actually retrieving the different style attributes from your styles.xml.  Am I missing something here or is it really not possible to retrieve these values?</p>
  
  <p>The style I'm trying to get the data from is the following:</p>
  
  <pre><code>&lt;style name="font4"&gt;
      &lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:textSize"&gt;14sp&lt;/item&gt;
      &lt;item name="android:textColor"&gt;#E3691B&lt;/item&gt;
      &lt;item name="android:paddingLeft"&gt;5dp&lt;/item&gt;
      &lt;item name="android:paddingRight"&gt;10dp&lt;/item&gt;
      &lt;item name="android:layout_marginTop"&gt;10dp&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I'm mainly interested in the textSize and textColor.</p>