Android custom selector with integer state
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res/com.example.app"&gt;
    &lt;item app:remainingUse="2" android:drawable="@drawable/blabla2" /&gt;
    &lt;item app:remainingUse="1" android:drawable="@drawable/blabla1" /&gt;
    &lt;item app:remainingUse="0" android:drawable="@drawable/blabla0" /&gt;
    &lt;item android:drawable="@drawable/blabla3" /&gt;
&lt;/selector&gt;
</code></pre>

<p>Is it possible to use an integer value as control state in a custom selector like above? </p>

<p>(remainingUse is a custom integer variable defined in attrs.xml)</p>
