ProgressDialog.SetProgressPercentFormat(NumberFormat) Method

Definition

Change the format of the small text showing the percentage of progress.

[Android.Runtime.Register("setProgressPercentFormat", "(Ljava/text/NumberFormat;)V", "GetSetProgressPercentFormat_Ljava_text_NumberFormat_Handler")]
public virtual void SetProgressPercentFormat (Java.Text.NumberFormat? format);
[<Android.Runtime.Register("setProgressPercentFormat", "(Ljava/text/NumberFormat;)V", "GetSetProgressPercentFormat_Ljava_text_NumberFormat_Handler")>]
abstract member SetProgressPercentFormat : Java.Text.NumberFormat -> unit
override this.SetProgressPercentFormat : Java.Text.NumberFormat -> unit

Parameters

format
NumberFormat

An instance of a NumberFormat to generate the percentage text. If null, nothing will be shown.

Attributes

Remarks

Change the format of the small text showing the percentage of progress. The default is NumberFormat#getPercentInstance() NumberFormat.getPercentageInstnace(). Should not be called during the number is progressing.

Java documentation for android.app.ProgressDialog.setProgressPercentFormat(java.text.NumberFormat).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to