This post is explaining the Progress Bar creation in android application
You can create a progress bar using the ProgressDialog
ProgressDialog dialog = ProgressDialog.show(MyActivity.this, "Title Here",
"Progress Message Here", true);
This will show the following progress bar.
to change the progress style use the following method
to cancel the dialog you can use the dialog.dismiss() or dialog.cancel() methods.
You can create a progress bar using the ProgressDialog
ProgressDialog dialog = ProgressDialog.show(MyActivity.this, "Title Here",
"Progress Message Here", true);
This will show the following progress bar.
to change the progress style use the following method
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
to cancel the dialog you can use the dialog.dismiss() or dialog.cancel() methods.
No comments:
Post a Comment