mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
[ProgressIndicator] Updated track thickness used in standalone demo as 2.5 dp.
PiperOrigin-RevId: 343532292
This commit is contained in:
parent
186d5ed023
commit
968fb195dc
@ -50,8 +50,10 @@ public class ProgressIndicatorStandaloneDemoFragment extends DemoFragment {
|
||||
|
||||
CircularProgressIndicatorSpec spec =
|
||||
new CircularProgressIndicatorSpec(getContext(), /*attrs=*/ null);
|
||||
spec.indicatorInset = 0; // No inset.
|
||||
spec.indicatorSize = (int) ViewUtils.dpToPx(getContext(), 22); // Circular radius is 10 dp.
|
||||
spec.indicatorInset = (int) ViewUtils.dpToPx(getContext(), 2);
|
||||
spec.indicatorSize = (int) ViewUtils.dpToPx(getContext(), 20);
|
||||
spec.trackThickness = (int) ViewUtils.dpToPx(getContext(), 5) / 2;
|
||||
|
||||
IndeterminateDrawable<CircularProgressIndicatorSpec> progressIndicatorDrawable =
|
||||
IndeterminateDrawable.createCircularDrawable(getContext(), spec);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user