Share via


ProgressDialog.SetProgressNumberFormat(String) Method

Definition

Change the format of the small text showing current and maximum units of progress.

[Android.Runtime.Register("setProgressNumberFormat", "(Ljava/lang/String;)V", "GetSetProgressNumberFormat_Ljava_lang_String_Handler")]
public virtual void SetProgressNumberFormat (string? format);
[<Android.Runtime.Register("setProgressNumberFormat", "(Ljava/lang/String;)V", "GetSetProgressNumberFormat_Ljava_lang_String_Handler")>]
abstract member SetProgressNumberFormat : string -> unit
override this.SetProgressNumberFormat : string -> unit

Parameters

format
String

A string passed to String#format String.format(); use "%1d" for the current number and "%2d" for the maximum. If null, nothing will be shown.

Attributes

Remarks

Change the format of the small text showing current and maximum units of progress. The default is "%1d/%2d". Should not be called during the number is progressing.

Java documentation for android.app.ProgressDialog.setProgressNumberFormat(java.lang.String).

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