How can I reference a drawable class in Android XML
<p>I've created a class that extends drawable that I'd like to reference inside a resource xml.  I happen to need it in a selector, like so:</p>

<pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;item android:state_window_focused="false" android:state_pressed="false" 
android:drawable="com.sample.android.contacts.TopBarCollapsed"
/&gt;
&lt;item android:state_window_focused="true" android:state_pressed="true" android:drawable="@drawable/top_switcher_collapsed_selected" /&gt;
&lt;item android:state_focused="true" android:drawable="@drawable/top_switcher_collapsed_focused" /&gt;
</code></pre>

<p></p>

<p>com.sample.android.contacts.TopBarCollapsed is the class that extends drawable. </p>
