How to remove border in custom AlertDialog?

后端 未结 3 1599
后悔当初
后悔当初 2020-12-21 15:34

I\'m trying to create custom AlertDialog with an image text and buttons. When I display it I get a white border which looks horrible.

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-21 16:19

    try this use Dialog Instead of AlertDialog.Builder

    .. for remove border line from Dialog..

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

提交回复
热议问题