title: How to get the attr reference in code?
body: <p>I'm looking to get the pointing reference from an attribute via code. In my xml layouts I can easily get the referenced drawable like this:</p>
  
  <pre><code>android:background="?attr/listItemBackground"
  </code></pre>
  
  <p>The attribute reference is set by my Theme.  I'm looking to see if it's possible to get that referenced drawable via code.  </p>
  
  <p>I can work around this by creating style attr and reading the value inside a custom view but in this case I want to figure out if this is possible without doing all that.  I would think it would be possible but I haven't found ways to get that attribute reference.</p>
  
  <p>Thanks!</p>