When using Theme.Sherlock.Light.DarkActionBar
(or Theme.Holo.Light.DarkActionBar
, doesn\'t make a difference), the ActionMode (or \"contextual ActionB
Problem:
App theme is inherited from android:Theme.Light, and there is no dedicated theme for AlertDialog, so that the ActionMode items are somehow invisible.
Solution:
1. Create a dedicated theme for AlertDialog;
Note: the most important line which makes the magic is
2. Use the dedicated theme when building an AlertDialog.
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AlertDialogTheme);
Please have a look at the screenshot which shows before and after applying the theme.