Using the custom enum attributes values
<p>In my application I'm using the following custom attribute for a custom view:</p>

<pre><code>&lt;attr name="direction"&gt;
    &lt;enum name="up" value="1" /&gt;
    &lt;enum name="down" value="2" /&gt;
&lt;/attr&gt;
</code></pre>

<p>The thing is that in my custom view I must compare the current direction with the possible 
ones. Is there a way to access the values for the up &amp; down attributes?</p>

<p>Thanks a lot,</p>

<p>Gratzi</p>
