custom alert dialog getting unwanted padding

后端 未结 3 1579
甜味超标
甜味超标 2021-01-02 05:07

I have tried to make a custom alert dialog and it mostly works very well. the functionality is working perfectly but the view is behaving in a weird way. The dialog layout c

3条回答
  •  感情败类
    2021-01-02 06:10

    The CustomPanel of an AlertDialog has a 5dp top and bottom padding. You can override these using:

    alert.setView(dialogView, 0, 0, 0, 0);
    

提交回复
热议问题