setIndeterminateDrawable

fun setIndeterminateDrawable(progressDrawable: Drawable?): Boolean

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

Return

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

See also

Parameters

progressDrawable

The Drawable object used to draw the Indeterminate ProgressBar.


fun setIndeterminateDrawable(@DrawableRes progressDrawableResID: Int): Boolean

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

Return

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

See also

Parameters

progressDrawableResID

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