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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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