Migration

June 14, 2026 · View on GitHub

Android View artifact rename

The Android View library artifact has been renamed so the View and Compose libraries share a consistent naming scheme.

Update your dependency:

// Old
implementation("com.akexorcist:round-corner-progress-bar:2.2.2")

// New
implementation("com.akexorcist:roundcornerprogressbar-view:2.3.0")

No code changes are required — the package, classes, and XML attributes are unchanged. Only the Maven artifact ID changed (round-corner-progress-barroundcornerprogressbar-view).

The Jetpack Compose library is available separately as com.akexorcist:roundcornerprogressbar-compose.

Migrate from 2.0 to 2.1+

BaseRoundCornerProgressBar.OnProgressChangedListener

Change the view ID parameter in onProgressChanged to View class

// Old
fun onProgressChanged(
    viewId: Int,
    progress: Float,
    isPrimaryProgress: Boolean,
    isSecondaryProgress: Boolean
)

// New
fun onProgressChanged(
    view: View,
    progress: Float,
    isPrimaryProgress: Boolean,
    isSecondaryProgress: Boolean
)

Custom your own progress bar by extends BaseRoundCornerProgressBar

Use AnimatedRoundCornerProgressBar instead of BaseRoundCornerProgressBar for progress change animation support.

class CustomRoundCornerProgressBar: AnimatedRoundCornerProgressBar() {
    /* ... */
}

And you do not have to create the GradientDrawable by yourself anymore. drawProgress will send it as parameter.

// Old
fun drawProgress(
    layoutProgress: LinearLayout,
    max: Float,
    progress: Float,
    totalWidth: Float,
    radius: Int,
    padding: Int,
    progressColor: Int,
    isReverse: Boolean
)

// New
fun drawProgress(
    layoutProgress: LinearLayout,
    progressDrawable: GradientDrawable,
    max: Float,
    progress: Float,
    totalWidth: Float,
    radius: Int,
    padding: Int,
    isReverse: Boolean
)