How to remove progress bar number at the bottom part of the progress bar?

How do I remove the encircled on the picture?

enter image description here

Thanks a lot for any help! :)


ANSWERS:


Pass null to setProgressNumberFormat() and setProgressPercentFormat() when you create your ProgressDialog. Note that this is only available on API Level 11 and higher.


I needed a similar functionality -> to hide the percenatge and min/max when the progressDialog is in indeterminate state.

private void setIndeterminate(boolean isIndeterminate) {
    progressDialog.setIndeterminate(isIndeterminate);
    if (isIndeterminate) {
        progressDialog.setProgressNumberFormat(null);
        progressDialog.setProgressPercentFormat(null);
    } else {
        progressDialog.setProgressNumberFormat("%1d/%2d");
        NumberFormat percentInstance = NumberFormat.getPercentInstance();
        percentInstance.setMaximumFractionDigits(0);
        progressDialog.setProgressPercentFormat(percentInstance);
    }
}

If you want to disable the above number status from progress dialogue, then you should remove this code.

progress1.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);

Here i will show you that how to create progress bar which will not show any status

progress1.setMessage("Fetching Files...! ");
progress1.setIndeterminate(true);             
 progress1.show();


 MORE:


 ? Vertical progress bar in android
 ? Custom indeterminate progress bar
 ? Progress bar inconvertable types; cannot cast error
 ? Remove progress bar from published document in MATLAB
 ? What is the basic idea behind programming a progress/status bar in MATLAB?
 ? Text progress bar in Matlab
 ? MATLAB update waitbar
 ? xlsread and waitbar MATLAB
 ? How to modify xlsread to get a step-by-step updated flag from loading process
 ? How can I make waitbar in MATLAB modal