I was following the progress dialog example in the ApiDemos. all went great except for one thing - I want to remove the numbers that appear underneath the bar (those running numbers that run from 0 to .getMax().
couldn't find how to do it.
anyone?
Ori
ProgressDialog is a modal dialog, which prevents the user from interacting with the app. Instead of using this class, you should use a progress indicator like ProgressBar , which can be embedded in your app's UI. Alternatively, you can use a notification to inform the user of the task's progress.
ProgressBar is best alternative for ProgressDialog.
ProgressDialog dialog = new ProgressDialog(MainActivity. this); dialog. setMessage("Your message.."); dialog. show();
In android there is a class called ProgressDialog that allows you to create progress bar. In order to do this, you need to instantiate an object of this class. Its syntax is. ProgressDialog progress = new ProgressDialog(this);
With api 11, we can do it by calling:
progressDialog.setProgressNumberFormat(null); progressDialog.setProgressPercentFormat(null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With