Freigeben über


ProgressBar.Progress Property

Definition

Get the progress bar's current level of progress. -or- Sets the current progress to the specified value.

public virtual int Progress { [Android.Runtime.Register("getProgress", "()I", "GetGetProgressHandler")] get; [Android.Runtime.Register("setProgress", "(I)V", "GetSetProgress_IHandler")] set; }
[<get: Android.Runtime.Register("getProgress", "()I", "GetGetProgressHandler")>]
[<set: Android.Runtime.Register("setProgress", "(I)V", "GetSetProgress_IHandler")>]
member this.Progress : int with get, set

Property Value

the current progress, between #getMin() and #getMax()

Attributes

Remarks

Property getter documentation:

Get the progress bar's current level of progress. Return 0 when the progress bar is in indeterminate mode.

Java documentation for android.widget.ProgressBar.getProgress().

Property setter documentation:

Sets the current progress to the specified value. Does not do anything if the progress bar is in indeterminate mode.

This method will immediately update the visual position of the progress indicator. To animate the visual position to the target value, use #setProgress(int, boolean)}.

Java documentation for android.widget.ProgressBar.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

See also