ActionBarSherlock shows wrong colors and a switch on the drop-down navigation spinner

I use ActionBarSherlock for compatibility with ActionBar.

Everything works fine except for the rectifier drop-down navigation menu.

Testing with an emulator on Android 2.3 and below, I get a radio button on the counter, and the text color is black.

This works well on Android 4+.

How can I remove the button and set the correct colors? Thank.

Image example:

ActionBarSherlock on Android 2.33 emulator

+5
source share
2 answers

Are you setting the correct dropdown items ?:

getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
navigationItems = Arrays.asList(getResources().getStringArray(R.array.navigation_array));
setupNavigationStrings();
navigationAdapter = new ArrayAdapter<String>(context, com.actionbarsherlock.R.layout.sherlock_spinner_item, navigationItems);
navigationAdapter.setDropDownViewResource(com.actionbarsherlock.R.layout.sherlock_spinner_dropdown_item);
getSupportActionBar().setListNavigationCallbacks(navigationAdapter, this);
+4
source

Found. I would use R.layout.sherlock_spinner_dropdown_itemfor a counter.

+10
source

All Articles