I’m looking for a way to add items to a spinner from within the spinner item list dialog.
Ideally, I could hit the menu button and select an option to add, prompt the user with an edittext dialog and update the item list. Is there a way to make the options menu accessible on a dialog?
I thought I might need to create an activity but then how do I make it look like a spinner item list dialog and how would I get it to show up when the spinner is clicked?
All I’m trying to do is add an unobtrusive way to launch a prompt to add items to the spinner item list from within the dialog. Any ideas?
How about allowing them to long-click the list and handling the long click event?
Spinner s=(Spinner) findViewById(R.id.yourspinner);s.setOnLongClickListener(new OnLongClickListener(){}...
}