Activity.SetProgress(Int32) Method

Definition

This method was deprecated in API level 24.

[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

int: 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

This method was deprecated in API level 24. No longer supported starting in API 21.

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

Android reference for android.app.Activity.setProgress.

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