@@ -0,0 +1,1703 @@
+package com.akexorcist.roundcornerprogressbar;%0A%0Aimport android.content.Context;%0Aimport android.util.AttributeSet;%0Aimport android.widget.LinearLayout;%0A%0Aimport androidx.annotation.Keep;%0Aimport androidx.annotation.NonNull;%0A%0A/**%0A * Thank you to @redsanso for add this feature. See @see %3Ca href=%22https://github.com/akexorcist/Android-RoundCornerProgressBar/issues/42%22%3ECentered Progress Bar%3C/a%3E%0A **/%0A@Keep%0Apublic class CenteredRoundCornerProgressBar extends RoundCornerProgressBar %7B%0A    public CenteredRoundCornerProgressBar(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A    %7D%0A%0A    public CenteredRoundCornerProgressBar(Context context, AttributeSet attrs, int defStyleAttr) %7B%0A        super(context, attrs, defStyleAttr);%0A    %7D%0A%0A    @Override%0A    protected void drawProgress(@NonNull LinearLayout layoutProgress,%0A                                float max,%0A                                float progress,%0A                                float totalWidth,%0A                                int radius,%0A                                int padding,%0A                                int colorProgress,%0A                                boolean isReverse) %7B%0A        super.drawProgress(layoutProgress, max, progress, totalWidth, radius, padding, colorProgress, isReverse);%0A        MarginLayoutParams params = (MarginLayoutParams) layoutProgress.getLayoutParams();%0A%0A        float ratio = max / progress;%0A        float progressWidth = (totalWidth - (padding * 2)) / ratio;%0A        float deltaWidth = totalWidth - progressWidth;%0A%0A        params.setMargins((int) (deltaWidth / 2), params.topMargin, (int) (deltaWidth / 2), params.bottomMargin);%0A        layoutProgress.setLayoutParams(params);%0A    %7D%0A%7D%0A

Add CenteredRoundCornerProgressBar #42