Partager via


Activity.SetProgress(Int32) Method

Definition

Sets the progress for the progress bars in the title.

[Android.Runtime.Register("setProgress", "(I)V", "")]
public void SetProgress (int progress);
[<Android.Runtime.Register("setProgress", "(I)V", "")>]
member this.SetProgress : int -> unit

Parameters

progress
Int32

The progress for the progress bar. Valid ranges are from 0 to 10000 (both inclusive). If 10000 is given, the progress bar will be completely filled and will fade out.

Attributes

Remarks

Sets the progress for the progress bars in the title.

In order for the progress bar to be shown, the feature must be requested via #requestWindowFeature(int).

This member is deprecated. No longer supported starting in API 21.

Java documentation for android.app.Activity.setProgress(int).

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