RemoteViews.SetProgressBar(Int32, Int32, Int32, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Equivalent to calling ProgressBar#setMax ProgressBar.setMax
,
ProgressBar#setProgress ProgressBar.setProgress
, and
ProgressBar#setIndeterminate ProgressBar.setIndeterminate
If indeterminate is true, then the values for max and progress are ignored.
[Android.Runtime.Register("setProgressBar", "(IIIZ)V", "GetSetProgressBar_IIIZHandler")]
public virtual void SetProgressBar (int viewId, int max, int progress, bool indeterminate);
[<Android.Runtime.Register("setProgressBar", "(IIIZ)V", "GetSetProgressBar_IIIZHandler")>]
abstract member SetProgressBar : int * int * int * bool -> unit
override this.SetProgressBar : int * int * int * bool -> unit
Parameters
- viewId
- Int32
The id of the ProgressBar
to change
- max
- Int32
The 100% value for the progress bar
- progress
- Int32
The current value of the progress bar.
- indeterminate
- Boolean
True if the progress bar is indeterminate, false if not.
- Attributes
Remarks
Java documentation for android.widget.RemoteViews.setProgressBar(int, int, int, boolean)
.
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.