title: How can i specify a drawable source with an attr attribute?
body: <p>I am writing an xml for a drawable. My question is: is there a way to give the src property a reference to a attribute defined in the attr.xml file ? I've tried:</p>
  
  <pre><code>android:src="?image"
  </code></pre>
  
  <p>and </p>
  
  <pre><code>android:src="?attr/image"
  </code></pre>
  
  <p>None of them seem to work. Here's my attr.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;attr name="image" format="reference"&gt;&lt;/attr&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>and where i define the values, which are related to theme:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="HOLO" parent="@android:style/Theme.Black"&gt;
          &lt;item name="android:textColor"&gt;#00FFFF&lt;/item&gt;
          &lt;item name="image"&gt;@drawable/holo_vcard_settings_icon&lt;/item&gt;
  
          &lt;/style&gt;
      &lt;style name="HOLO_LIGHT" parent="@android:style/Theme.Light"&gt;
          &lt;item name="android:textColor"&gt;#FF00FF&lt;/item&gt;
          &lt;item name="image"&gt;@drawable/holo_light_vcard_settings_icon&lt;/item&gt;
          &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>