create
fun create(@ColorInt color: Int = Color.TRANSPARENT, indeterminateDrawable: Drawable? = null, widthPx: Int? = null, heightPx: Int? = null, style: Style? = null, @AttrRes defStyleAttr: Int = 0, @StyleRes defStyleRes: Int = 0): ProgressPrimitiveComponent
Java-compatible factory method that accepts pixel values for dimensions. Use this method when calling from Java code with pixel values (e.g., from .widthPx() or .heightPx() calls).
Parameters
color
Tint color for the indeterminateDrawable.
indeterminateDrawable
Drawable to be shown to indicate progress.
widthPx
Width in pixels, or null to not set.
heightPx
Height in pixels, or null to not set.
style
Additional style to apply, or null for no additional style.
defStyleAttr
Theme attribute referencing a style with progress bar defaults.
defStyleRes
Style resource supplying progress bar defaults (e.g. android:indeterminateDrawable); used only when indeterminateDrawable is null.