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

前端 未结 9 1783
别那么骄傲
别那么骄傲 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:38

    Sorry for late answer, Its about import problem. you need to select v7.alertDialog, not use app.alertDialog.

    Please change your code to v7.alertDialog and you will show button color in nexus as well.

提交回复
热议问题