Last active
March 29, 2020 05:12
-
-
Save AlmisbahTS/0df79c9a75014e320cc71131ccfe2711 to your computer and use it in GitHub Desktop.
Android Progress dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // import namespace | |
| import android.app.ProgressDialog; | |
| //initialize progress dialog | |
| ProgressDialog progressDialog=new ProgressDialog(MainActivity.this); | |
| //settings | |
| //when dialog will displayed and if user click on screen it should not dissmiss | |
| progressDialog.setCancelable(false); | |
| //message which shows inside progress | |
| progressDialog.setMessage("Please Wait!"); | |
| //show the progress when you needs by | |
| progressDialog.show(); | |
| //dismess progress when you needs by | |
| progressDialog.dismess(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment