android - Getting Selected Item from Action Bar spinner Navigation -


i'm working on action bar spinner. followed tutorial 18th step here

i want selected item in spinner box. want selected value using switch case statement.
how can selected item inside onoptionsitemselected method?

i think have use onnavigationitemselected method determine item selected spinner:

/**  * actionbar navigation item select listener  * */ @override public boolean onnavigationitemselected(int itemposition, long itemid) {      spinnernavitem selecteditem = navspinner.get(itemposition);          } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -