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
Post a Comment