Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ProgressDialog - how to remove the numbers

Tags:

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

like image 483
oriharel Avatar asked May 09 '10 14:05

oriharel


People also ask

What is ProgressDialog in Android?

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.

What can I use instead of ProgressDialog?

ProgressBar is best alternative for ProgressDialog.

How do you make progress dialog?

ProgressDialog dialog = new ProgressDialog(MainActivity. this); dialog. setMessage("Your message.."); dialog. show();

How do I instantiate an object for ProgressDialog class?

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);


1 Answers

With api 11, we can do it by calling:

progressDialog.setProgressNumberFormat(null); progressDialog.setProgressPercentFormat(null); 
like image 102
Elijah Avatar answered Oct 21 '22 20:10

Elijah