setProgressCompat

open fun setProgressCompat(progress: Int, animated: Boolean)

Sets the current progress to the specified value with/without animation based on the input.

If it's in the indeterminate mode, it will smoothly transition to determinate mode by finishing the current indeterminate animation cycle.

Parameters

progress

The new progress value.

animated

Whether to update the progress with the animation.

See also