How to make an Alert dialog in full screen in Android?

前端 未结 4 2222
半阙折子戏
半阙折子戏 2021-02-19 01:16

How to make an Alert Dialog in full screen in Android?

4条回答
  •  不知归路
    2021-02-19 01:47

    you must create a custom style for your dialog

    in your style.xml

     
    

    while inflating your dialog set this theme

    dialog = new Dialog(this, R.style.DialogTheme);

提交回复
热议问题