Programming Tips - Can you set the Spinner mode in layout xml?

Date: 2018mar9 OS: Android Language: xml Q. Can you set the Spinner mode in layout xml? A. This was added in API level 11.
<Spinner android:spinnerMode="dropdown" ... /> <Spinner android:spinnerMode="dialog" ... />
or
<Spinner style="@android:style/Widget.Spinner.DropDown" ... /> <Spinner style="@android:style/Widget.Spinner.Dialog" ... />