1

Spinner in ActionBar doesn't appear

view story
linux-howto

http://stackoverflow.com – I've implemeted spinner like here . And now I want to place spinner in ActionBar (setting spinner as CustomView to actionBar) but it doesn't appear there :( Spinner spinner = (Spinner) findViewById(R.id.planets_spinner); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.planets_array, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner.setAdapter(adapter); actionBar.setCustomView(spinner); and here is .XML <?xml version="1. (HowTos)