I have the following menu xml code:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_select_appshare"
android:showAsAction="always"
android:title="@string/action_select_appshare"
android:actionViewClass="android.widget.Spinner" />
</menu>
Because a Spinner
seem to require the definition of the android:spinnerMode
attribute from the get-go, and there doesn't seem to be a proper way to set it later on after the Spinner
object is created. I was wondering if there's a way to specify additional attributes (such as android:spinnerMode
in my e.g.) for an android:actionViewClass
within the menu XML?
Thanks!