简体   繁体   中英

ProgressDialog covers whole screen

I'd like to show a ProgressDialog which covers whole screen. I mean when the dialog is showing, the UI shouldn't be touched or clicked or interacted. How to create a dialog like that?

That is already done by a normal ProgressDialog.
Just add myProgressDialog.setCanceledOnTouchOutside(false);
this prevents the dialog from closing when the user clicks on the screen.
myProgressDialog.setCancelable(false); prevents the Dialog from closing on "back"-key

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM