Android: Get an attribute's value from an XML item
<p>Is there an easy way to grab a attribute value from an xml item in your Java class definition? I'm looking for something like this:</p>

<p>// In xml layout:</p>

<pre><code>&lt;TextView android:id="@+id/MyXMLitem" android:textColor="#000000" /&gt; 
</code></pre>

<p>// in Java Class definition</p>

<pre><code>String some_text_color;
some_text_color = R.id.MyXMLitem.attr.textColor; // I'd like this to return "#000000"
</code></pre>

<p>I know you can grab similar xml attributes from the converted objects using getters/setters like View.getText()... I'm just wondering if there's a way to grab an xml attribute right from the item itself.</p>
