I’m subclassing the Spinner class, and I need to get the objects specified in the xml file by android:entries. How can I do that?
<com.myapp.MySpinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/myarray"/>
So I need either the array specified in the entries argument, or the resourceid so I can fetch them myself.
You need to override constructor of
Spinnerand retrieve entries from theAttributeSetparam.