Android Dialog Box without buttons

前端 未结 9 2524
余生分开走
余生分开走 2021-02-19 06:52

Can i create a dialog box without negative or positive buttons. That destroys it self after specific action?

 AlertDialog.Builder dialog_detect= new AlertDialog.         


        
9条回答
  •  时光说笑
    2021-02-19 07:11

    You can try Custom Dialog design u r on Dialog and use it as u wish to use them

    final Dialog dialog= new Dialog(context);
    dialog.setContentView(R.layout.pre_confirmation_dailog); 
    dialog.setTitle("Details...");
    dialog.show();
    

提交回复
热议问题