Invisible ActionMode item icons in Theme.Sherlock.Light.DarkActionBar

前端 未结 8 2443
一生所求
一生所求 2021-02-13 09:47

When using Theme.Sherlock.Light.DarkActionBar (or Theme.Holo.Light.DarkActionBar, doesn\'t make a difference), the ActionMode (or \"contextual ActionB

8条回答
  •  时光说笑
    2021-02-13 10:13

    Forcing setTheme on the current context is not a good idea, as it corrupts the theme. To solve that you can use ContextThemeWrapper.

    Context themedContext = new ContextThemeWrapper(getActivity(), android.R.style.Theme_Holo_Light);
    final AlertDialog dialog = new AlertDialog.Builder(themedContext)
    

提交回复
热议问题