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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -