When using Theme.Sherlock.Light.DarkActionBar
(or Theme.Holo.Light.DarkActionBar
, doesn\'t make a difference), the ActionMode (or \"contextual ActionB
The solution is to use the ActionBar's context to create the AlertDialog:
Context themedContext = getActivity().getActionBar().getThemedContext();
Or using ActionBarSherlock/ActionBarCompat:
Context themedContext = getActivity().getSupportActionBar().getThemedContext();
Then create the AlertDialog using this themed context:
AlertDialog.Builder builder = new AlertDialog.Builder(themedContext);