Skip to content

Commit 90a1f22

Browse files
pekingmedsn5ft
authored andcommitted
[ProgressIndicator] Moved showDelay and minHideDelay attrs to resources module.
PiperOrigin-RevId: 793441910
1 parent 3c332f9 commit 90a1f22

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

lib/java/com/google/android/material/progressindicator/res-public/values/public.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
<public name="indicatorTrackGapSize" type="attr"/>
2525
<public name="showAnimationBehavior" type="attr"/>
2626
<public name="hideAnimationBehavior" type="attr"/>
27-
<public name="showDelay" type="attr"/>
28-
<public name="minHideDelay" type="attr"/>
2927
<public name="wavelength" type="attr"/>
3028
<public name="wavelengthDeterminate" type="attr"/>
3129
<public name="wavelengthIndeterminate" type="attr"/>

lib/java/com/google/android/material/progressindicator/res/values/attrs.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@
7777
once show() is called. If set to zero or negative values (-1 as default),
7878
the show action will start immediately.
7979
-->
80-
<attr name="showDelay" format="integer" />
80+
<attr name="showDelay" />
8181
<!--
8282
The minimum time, in milliseconds, that the requested hide action will
8383
wait to start once show action is started. If set to zero or negative
8484
values (-1 as default), the requested hide action will start immediately.
8585
This value is capped to a limit defined in ProgressIndicator class.
8686
-->
87-
<attr name="minHideDelay" format="integer" />
87+
<attr name="minHideDelay" />
8888
<!--
8989
The size of the gap between the progress indicator and track.
9090
-->

lib/java/com/google/android/material/resources/res-public/values/public.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
<!-- ProgressIndicator and LoadingIndicator -->
4545
<public name="indicatorColor" type="attr"/>
4646
<public name="indicatorSize" type="attr"/>
47+
<public name="showDelay" type="attr"/>
48+
<public name="minHideDelay" type="attr"/>
4749

4850
<!-- Button Group and Overflow Linear Layout -->
4951
<public name="layout_overflowIcon" type="attr"/>

lib/java/com/google/android/material/resources/res/values/attrs.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@
4343
<!-- ProgressIndicator and LoadingIndicator -->
4444
<attr name="indicatorColor" format="color|reference" />
4545
<attr name="indicatorSize" format="dimension" />
46+
<!--
47+
The time, in milliseconds, that the progress/loading indicator will wait
48+
to show once show() is called. If set to zero or negative values (-1 as
49+
default), the show action will start immediately.
50+
-->
51+
<attr name="showDelay" format="integer" />
52+
<!--
53+
The minimum time, in milliseconds, that the requested hide action will
54+
wait to start once show action is started. If set to zero or negative
55+
values (-1 as default), the requested hide action will start immediately.
56+
This value is capped to a limit defined in ProgressIndicator or
57+
LoadingIndicator class.
58+
-->
59+
<attr name="minHideDelay" format="integer" />
4660

4761
<!-- Button Group and Overflow Linear Layout -->
4862
<!-- The icon of the overflow menu item. -->

0 commit comments

Comments
 (0)