JakeWharton/ActionBarSherlock — Issue #295: Pre-3.0: Spinner takes up entire available width in list mode
Author: petar-bogdanov
Created: 2012-02-21 17:49:21+00:00
State: open

Steps to reproduce:
1. Create any activity with list navigation, for example:
///......
String[] ROOT_VIEWS = {"Some view", "Other view"};
ActionBar actionbar = getSupportActionBar();
actionbar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
ArrayAdapter adapter = new ArrayAdapter(this, R.layout.abs__simple_spinner_item, ROOT_VIEWS);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
actionbar.setListNavigationCallbacks(adapter, this);
///.......
2. Run in Android 2.2 simulator
3. Title is gone
4. Run in android 4.0 simulator
5. Title is there

This hides any actionbar element, except the home icon, and not only the title.