Missing buttons on AlertDialog | Android 7.0 (Nexus 5x)

前端 未结 9 1814
别那么骄傲
别那么骄傲 2020-12-05 13:19

I am trying to create an AlertDialog but the buttons are not showing. Only seeing this issue in Android 7.0:

final AlertDialog.Builder builder =         


        
9条回答
  •  渐次进展
    2020-12-05 13:33

    You need use a theme, like this:

    Android.App.AlertDialog.Builder alert = new Android.App.AlertDialog.Builder (Activity, Android.Resource.Style.ThemeMaterialDialogAlert);

提交回复
热议问题