title: Get theme attributes programmatically
body: <p>How do I get the value of a Theme attribute programmatically? </p>
  
  <p>For example: </p>
  
  <p>Theme:</p>
  
  <pre><code>&lt;style name="Theme"&gt;
      ... truncated ....
      &lt;item name="textAppearanceLarge"&gt;@android:style/TextAppearance.Large&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>int textSize = ???? // how do I get Theme.textAppearanceLarge? 
  </code></pre>
  
  <p>EDIT: too many answers that don't address the question.</p>