android - Show (dynamically created) Spinner -


i have spinner:

     spinner country_list=new spinner(this);      arrayadapter<string> adapter= new arrayadapter<string>(this, android.r.layout.simple_spinner_item, countries);      adapter.setdropdownviewresource(android.r.layout.simple_spinner_dropdown_item);      country_list.setadapter(adapter); 

now want show popup user select. need use alertdialog or there simpler way?

/edit: actually, want not spinner. want list of countries when user clicks button , or can select country. "second part" of spinner - list shows in popup. should use listview?

what needed

country_list.performclick() 

to display spinner button click.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -