ActionBarSherlock doesn't support light-theme alert dialogs?

后端 未结 2 2105
春和景丽
春和景丽 2021-01-06 07:34

Well as the title says, i\'m using the actionBarSherlock library and a light theme, and sometimes I need to show a dialog using the alertDialog.Builder class.

Thing

2条回答
  •  孤街浪徒
    2021-01-06 08:05

    This is what I did and it made the body of the dialog white. The title is still on a black background:

    new AlertDialog.Builder(
        new ContextThemeWrapper(
            activity,
            R.style.Theme_Sherlock_Light));
    

    I also tried Theme_Sherlock_Light_NoActionBar, but it doesn't seem to make any difference.

提交回复
热议问题