android - How to set the spinner mode dynamically? -


i have created spinner dynamically, easy new spinner(context).
need set spinnermode dynamically, , find no method so.

what should do?

in android >= 3.0 (api 11) can use :

    spinner spinner = new spinner(this,null,android.r.style.widget_spinner,spinner.mode_dropdown); 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -