Android Dialog Box without buttons

前端 未结 9 2526
余生分开走
余生分开走 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:06

    to show dialog:-

    ProgressDialog pd = ProgressDialog.show(context,"TITLE","MSG");
    

    to dismiss

    pd.dismiss();
    

提交回复
热议问题