Retrieve arguments for android:entries
<p>I'm subclassing the <code>Spinner</code> class, and I need to get the objects specified in the xml file by <code>android:entries</code>. How can I do that?</p>

<pre><code>&lt;com.myapp.MySpinner
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:entries="@array/myarray"/&gt;
</code></pre>

<p>So I need either the array specified in the <code>entries</code> argument, or the resourceid so I can fetch them myself.</p>
