You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: circularprogressindicator/src/main/java/antonkozyriatskyi/circularprogressindicator/CircularProgressIndicator.java
floatstrokeSizeOffset = (shouldDrawDot) ? Math.max(dotPaint.getStrokeWidth(), progressPaint.getStrokeWidth()) : progressPaint.getStrokeWidth(); // to prevent progress or dot from drawing over the bounds
@@ -256,7 +266,10 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
256
266
privatevoidcalculateBounds(intw, inth) {
257
267
radius = w / 2f;
258
268
259
-
floatstrokeSizeOffset = (shouldDrawDot) ? Math.max(dotPaint.getStrokeWidth(), progressPaint.getStrokeWidth()) : progressPaint.getStrokeWidth(); // to prevent progress or dot from drawing over the bounds
floatstrokeSizeOffset = (shouldDrawDot) ? Math.max(dotWidth, Math.max(progressWidth, progressBackgroundWidth)) : Math.max(progressWidth, progressBackgroundWidth); // to prevent progress or dot from drawing over the bounds
260
273
floathalfOffset = strokeSizeOffset / 2f;
261
274
262
275
circleBounds.left = halfOffset;
@@ -436,8 +449,17 @@ public void setProgressStrokeWidthDp(@Dimension int strokeWidth) {
0 commit comments