Companion
object Companion
Functions
Link copied to clipboard
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).
Link copied to clipboard
fun createDp(@ColorInt color: Int = Color.TRANSPARENT, indeterminateDrawable: Drawable? = null, widthDp: Float? = null, heightDp: Float? = null, style: Style? = null, @AttrRes defStyleAttr: Int = 0, @StyleRes defStyleRes: Int = 0): ProgressPrimitiveComponent
Java-compatible factory method that accepts dp values for dimensions. Use this method when calling from Java code with dp values (e.g., from .widthDip() or .heightDip() calls).