Skip to content

Commit 23b5eb0

Browse files
pekingmewcshi
authored andcommitted
[ProgressIndicator] Updated track thickness used in standalone demo as 2.5 dp.
PiperOrigin-RevId: 343532292 (cherry picked from commit 968fb19)
1 parent d57d054 commit 23b5eb0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

catalog/java/io/material/catalog/progressindicator/ProgressIndicatorStandaloneDemoFragment.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ public View onCreateDemoView(
5050

5151
CircularProgressIndicatorSpec spec =
5252
new CircularProgressIndicatorSpec(getContext(), /*attrs=*/ null);
53-
spec.indicatorInset = 0; // No inset.
54-
spec.indicatorSize = (int) ViewUtils.dpToPx(getContext(), 22); // Circular radius is 10 dp.
53+
spec.indicatorInset = (int) ViewUtils.dpToPx(getContext(), 2);
54+
spec.indicatorSize = (int) ViewUtils.dpToPx(getContext(), 20);
55+
spec.trackThickness = (int) ViewUtils.dpToPx(getContext(), 5) / 2;
56+
5557
IndeterminateDrawable<CircularProgressIndicatorSpec> progressIndicatorDrawable =
5658
IndeterminateDrawable.createCircularDrawable(getContext(), spec);
5759

0 commit comments

Comments
 (0)