setProgress

open fun setProgress(progress: Int)

Sets the current progress to the specified value. Does not do anything if the progress bar is in indeterminate mode. Animation is not used by default. This default setting is aligned with setProgress.

Parameters

progress

The new progress value.

See also