99 Commits

Author SHA1 Message Date
haodong
c78c1efb59 [ProgressIndicator] Fixed NPE while setting progress in the indeterminate mode after inflation.
PiperOrigin-RevId: 351656379
(cherry picked from commit 7a9e3f6d89ec6691d4b5a4c8e24dd273d2a7eecd)
2021-01-14 14:27:47 -05:00
haodong
e9fcdf0443 [ProgressIndicator] Fixed the visibility bug in RecyclerView.
PiperOrigin-RevId: 351655786
(cherry picked from commit 59109559903f61ef922f838e7f8f64d9cdb59dcf)
2021-01-14 14:27:47 -05:00
haodong
814ce6d72d [ProgressIndicator] Fixed not hidden when committed hiding is interrupted by window hiding (i.e., home button pressed).
Resolves https://github.com/material-components/material-components-android/issues/1937

PiperOrigin-RevId: 350789077
(cherry picked from commit 196116ffa442aeac5a4d535792ab44fc3c0688cd)
2021-01-14 14:27:02 -05:00
haodong
04ae5d7ac1 [ProgressIndicator] Fixed determinate drawable not fully shown when switched from indeterminate mode for the second time in SDK 19/21/23.
PiperOrigin-RevId: 350786230
(cherry picked from commit 712f5f3c993b5ab2f4b24d8373c6e74d5c981a95)
2021-01-14 14:27:02 -05:00
haodong
46d8fbadf8 [ProgressIndicator] Fixed indeterminate animation not playing after inflation/being visible in SDK 21.
PiperOrigin-RevId: 350783980
(cherry picked from commit 86b70d7bf7733ebc91141f52b549351e27641d58)
2021-01-14 14:26:08 -05:00
haodong
1ff2d6a262 [ProgressIndicator] Updated linear indeterminate animation.
PiperOrigin-RevId: 350781463
(cherry picked from commit fdb420f540910315140b2d410e6b95d21d538a06)
2021-01-14 14:26:08 -05:00
haodong
4dd1d84bc0 [ProgressIndicator] Updated circular indeterminate animation.
Resolves https://github.com/material-components/material-components-android/issues/1852

PiperOrigin-RevId: 350781191
(cherry picked from commit 2163e3d2cbf4d259364f883d642edd6c97638f0b)
2021-01-14 14:26:08 -05:00
haodong
60723fdf08 [ProgressIndicator] Fixed incorrect visibility when used in the recycler view.
Resolves https://github.com/material-components/material-components-android/issues/1902
Resolves https://github.com/material-components/material-components-android/issues/1914

PiperOrigin-RevId: 347417506
(cherry picked from commit 9ccad215101db0c3d7f71358fab61bdf0211d538)
2020-12-15 17:48:03 -05:00
haodong
77cf940680 [ProgressIndicator] Renamed indeterminateAnimationType enums "seamless" and "spacing".
PiperOrigin-RevId: 345467359
(cherry picked from commit e5375fcb696c24e479971a65e4061891fef0083d)
2020-12-15 17:37:43 -05:00
haodong
e2a54daa9c [ProgressIndicator] Added sized styles for circular type.
PiperOrigin-RevId: 344141496
(cherry picked from commit 4ab8cb1d4c039a705843695f72aa4547b3fddabe)
2020-12-15 16:39:46 -05:00
haodong
316c68e94d [ProgressIndicator] Corrected comments for javadoc.
PiperOrigin-RevId: 343570043
(cherry picked from commit 379519765a65f57c2c207f2e42637566ff365f80)
2020-11-24 10:51:00 -05:00
haodong
d57d05425b [ProgressIndicator] Renamed some attributes.
PiperOrigin-RevId: 343299956
(cherry picked from commit 9d7ae04e0e2fa6b0f6a077e41aa20b0faab21364)
2020-11-24 10:49:51 -05:00
haodong
4ac0fe05d1 [ProgressIndicator] Hided AnimatorDurationScaleProvider from API.
PiperOrigin-RevId: 343124032
(cherry picked from commit 5ff62d30982cea552946b06ffd30207d73a9fd6e)
2020-11-24 10:49:31 -05:00
haodong
a99966a162 [ProgressIndicator] Made BaseProgressIndicator and BaseProgressIndicatorSpec abstract.
PiperOrigin-RevId: 342737029
2020-11-17 15:50:41 -05:00
haodong
be6ed3da48 [ProgressIndicator] Updated class visibility.
PiperOrigin-RevId: 342664697
2020-11-16 16:40:34 -05:00
haodong
e1d979631d [ProgressIndicator] Combined attributes show/hideBehaviorLinear and show/hideBehaviorCircular.
PiperOrigin-RevId: 342086777
2020-11-14 10:07:06 -05:00
haodong
b1ef02a16b [ProgressIndicator] Cleaned up deprecated class and resources.
PiperOrigin-RevId: 342076767
2020-11-12 13:53:23 -05:00
haodong
c76665bc11 [ProgressIndicator] Deprecated LINEAR type in ProgressIndicator and ProgressIndicator.
PiperOrigin-RevId: 342069665
2020-11-12 13:49:35 -05:00
haodong
a5890bfe6b [ProgressIndicator] Fixed incorrect visibility when Recyclerview is used.
Resolves https://github.com/material-components/material-components-android/issues/1662

PiperOrigin-RevId: 341845553
2020-11-12 10:55:00 -05:00
haodong
8b38e32829 [ProgressIndicator] Added attribute tests and parameter tests for LinearProgressIndicator.
PiperOrigin-RevId: 338754297
2020-10-27 05:09:24 -07:00
haodong
298dbe75f6 [ProgressIndicator] Made LinearProgressIndicator functional and optimized readability of CircularProgressIndicator.
PiperOrigin-RevId: 338753954
2020-10-27 05:08:39 -07:00
haodong
757b4fac85 [ProgressIndicator] Use LinearProgressIndicatorSpec in LINEAR type.
PiperOrigin-RevId: 338753632
2020-10-27 04:36:39 -07:00
haodong
b6643204a6 [ProgressIndicator] Added LinearProgressIndicator and LinearProgressIndicatorSpec.
PiperOrigin-RevId: 338738646
2020-10-27 04:35:45 -07:00
haodong
e019b02bb5 [ProgressIndicator] Fixed attribute's references and added spec validation to setting indicatorSize in CircularProgressIndicator.
PiperOrigin-RevId: 338163182
2020-10-21 15:47:52 -07:00
haodong
a7f1430f62 [ProgressIndicator] Deprecated CIRCULAR type in ProgressIndicator.
PiperOrigin-RevId: 337590517
2020-10-19 05:57:40 -07:00
hunterstich
cdea820c0f [ProgressIndicator] Moved comment into constructor body.
PiperOrigin-RevId: 337307024
2020-10-15 13:38:41 -07:00
haodong
c3d59395a5 [ProgressIndicator] Update GM testing and catalog.
PiperOrigin-RevId: 337198418
2020-10-15 13:37:00 -07:00
haodong
10e7349853 [ProgressIndicator] Moved the logic from ProgressIndicator to BaseProgressIndicator and made CircularProgressIndicator functional.
PiperOrigin-RevId: 337188667
2020-10-15 13:34:50 -07:00
haodong
113bff7dd7 [ProgressIndicator] Use CircularProgressIndicatorSpec in CIRCULAR type.
PiperOrigin-RevId: 337106191
2020-10-15 13:27:53 -07:00
haodong
0a75c746ff [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 337009157
2020-10-15 13:24:45 -07:00
haodong
95677464fd [ProgressIndicator] Updated ProgressIndicatorSpec to use BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336944763
2020-10-15 13:22:15 -07:00
haodong
4a56bca6c8 Automated g4 rollback of changelist 336312110
PiperOrigin-RevId: 336562092
2020-10-15 13:12:42 -07:00
haodong
33494486c8 Automated g4 rollback of changelist 336313426
PiperOrigin-RevId: 336388324
2020-10-15 13:11:59 -07:00
haodong
42840c0e24 Automated g4 rollback of changelist 336314674
PiperOrigin-RevId: 336388120
2020-10-15 13:10:39 -07:00
haodong
9199b49bca Automated g4 rollback of changelist 336315813
PiperOrigin-RevId: 336387821
2020-10-15 13:07:44 -07:00
haodong
8c3e3bf955 Automated g4 rollback of changelist 336326618
PiperOrigin-RevId: 336379824
2020-10-15 13:01:51 -07:00
haodong
64561681dd [ProgressIndicator] Update GM testing and catalog.
PiperOrigin-RevId: 336326618
2020-10-15 12:59:40 -07:00
haodong
322d073036 [ProgressIndicator] Moved the logic from ProgressIndicator to BaseProgressIndicator and made CircularProgressIndicator functional.
PiperOrigin-RevId: 336315813
2020-10-15 12:55:30 -07:00
haodong
9215166f7e [ProgressIndicator] Use CircularProgressIndicatorSpec in CIRCULAR type.
PiperOrigin-RevId: 336314674
2020-10-15 12:49:05 -07:00
haodong
5cfcc2e317 [ProgressIndicator] Added CircularProgressIndicator and CircularProgressIndicatorSpec.
PiperOrigin-RevId: 336313426
2020-10-15 12:41:02 -07:00
haodong
80aefb3ac7 [ProgressIndicator] Updated ProgressIndicatorSpec to use BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336312110
2020-10-15 12:40:13 -07:00
haodong
e73d383b17 [ProgressIndicator] Added BaseProgressIndicator and BaseProgressIndicatorSpec.
PiperOrigin-RevId: 336311648
2020-10-15 12:39:06 -07:00
haodong
df6334fb0e [ProgressIndicator] Detach spec object from the drawable classes.
PiperOrigin-RevId: 336311315
2020-10-15 12:37:12 -07:00
haodong
1acb23bb0c [ProgressIndicator] Let indeterminate animator delegate classes use spec directly.
This is another step towards detaching the spec from drawable classes.

PiperOrigin-RevId: 336311000
2020-10-15 12:35:10 -07:00
haodong
e77fe1ea9a [ProgressIndicator] Let drawing delegate classes use spec directly.
This is one step towards detaching the spec from drawable classes.

PiperOrigin-RevId: 336309131
2020-10-15 12:34:15 -07:00
haodong
1c135f040c [ProgressIndicator] Added new attributes and styles for LinearProgressIndicator and CircularProgressIndicator.
PiperOrigin-RevId: 336308622
2020-10-15 12:32:41 -07:00
Thomas Vos
38697f5496 [ProgressIndicator] Fix typos in ProgressIndicator.java
Resolves https://github.com/material-components/material-components-android/pull/1772

GIT_ORIGIN_REV_ID=1ac091ca239b7e3c09fed4fe165257fb54671dd8
PiperOrigin-RevId: 335674338
2020-10-08 15:52:53 +00:00
haodong
8bba732aaa Automated g4 rollback of changelist 328982034
PiperOrigin-RevId: 329810012
2020-09-09 11:23:29 -04:00
haodong
f330ee8eb5 [ProgressIndicator] Fixed update listener for determinate drawable.
PiperOrigin-RevId: 329806314
2020-09-09 11:22:40 -04:00
haodong
395c2cda63 [ProgressIndicator] Removed custom drawing support to minimize API exposure.
PiperOrigin-RevId: 329001093
2020-08-28 18:07:25 -04:00