Udostępnij za pośrednictwem


Activity.SetSecondaryProgress(Int32) Method

Definition

Sets the secondary progress for the progress bar in the title.

[Android.Runtime.Register("setSecondaryProgress", "(I)V", "")]
public void SetSecondaryProgress (int secondaryProgress);
[<Android.Runtime.Register("setSecondaryProgress", "(I)V", "")>]
member this.SetSecondaryProgress : int -> unit

Parameters

secondaryProgress
Int32

The secondary progress for the progress bar. Valid ranges are from 0 to 10000 (both inclusive).

Attributes

Remarks

Sets the secondary progress for the progress bar in the title. This progress is drawn between the primary progress (set via #setProgress(int) and the background. It can be ideal for media scenarios such as showing the buffering progress while the default progress shows the play progress.

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.setSecondaryProgress(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