setDeterminateDrawable

fun setDeterminateDrawable(progressDrawable: Drawable?): Boolean

Sets a Custom Drawable to the Determinate ProgressBar. Can be used only in MODE_DETERMINATE. Use this when you need to define a custom Drawable Design for Determinate ProgressBar.

Return

true if mode is MODE_DETERMINATE and the Drawable is set. false otherwise.

See also

Parameters

progressDrawable

The Drawable object used to draw the Determinate ProgressBar.


fun setDeterminateDrawable(@DrawableRes progressDrawableResID: Int): Boolean

Sets a Custom Drawable from the passed Drawable resource to the Determinate ProgressBar. Can be used only in MODE_DETERMINATE. Use this when you need to define a custom Drawable Design for Determinate ProgressBar.

Return

true if mode is MODE_DETERMINATE and the Drawable is set. false otherwise.

See also

Parameters

progressDrawableResID

The resource id of the Drawable resource used to draw the Determinate ProgressBar.