haodong
984738c067
[ProgressIndicator] Added logic to respond to system animation scale settings for determinate types.
...
PiperOrigin-RevId: 319038716
2020-06-30 16:07:44 -04:00
haodong
4ccec4ff71
[ProgressIndicator] Fixed indeterminate types disco when system animation duration scale is off.
...
- Removed constant for debugging animation speed.
- Added a condition to check if resetting start offset for circular indeterminate type is valid.
- Added a condition to check if rotating color for seamless indeterminate type is valid.
PiperOrigin-RevId: 319035241
2020-06-30 16:06:17 -04:00
haodong
26021ed418
[ProgressIndicator] Fixed incorrectly setting drawable's visibility when switching indeterminate mode for API19.
...
PiperOrigin-RevId: 318877353
2020-06-29 16:21:45 -04:00
haodong
0b443ad51f
[ProgressIndicator] Changed interpolator for seamless linear indeterminate type from LINEAR_OUT_SLOW_IN to FAST_OUT_SLOW_IN.
...
PiperOrigin-RevId: 318866756
2020-06-29 16:20:21 -04:00
haodong
e44804ffd4
[ProgressIndicator] Relocated the logic of animator disabling.
...
- Removed the flag for disabling animators in drawable classes.
- Rewrote the logic to disable animators in ProgressIndicator class.
- Some cleanup.
PiperOrigin-RevId: 318823871
2020-06-29 16:17:51 -04:00
haodong
8fbc2e02e9
[ProgressIndicator] Added the custom drawable support (6/7)
...
- Integrated new animator delegate classes to ProgressIndicator.
- Removed the replaced drawable classes.
- Added getPreferredSize function to drawing delegate interface.
- Added new indicator type CUSTOM.
- Fixed some potential NPE logics.
PiperOrigin-RevId: 318197464
2020-06-26 14:10:32 -04:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
haodong
7e595b6ce0
[ProgressIndicator] Added the custom drawable support (5/7)
...
- Added a final animator delegate for circular indeterminate mode.
PiperOrigin-RevId: 318099750
2020-06-26 14:06:10 -04:00
haodong
4f5a98ff10
[ProgressIndicator] Added the custom drawable support (4/7)
...
- Added a final animator delegate for seamless linear indeterminate mode.
PiperOrigin-RevId: 318096350
2020-06-26 14:05:22 -04:00
haodong
c22f3f4b98
[ProgressIndicator] Added the custom drawable support (3/7)
...
- Added a final animator delegate for non-seamless linear indeterminate mode.
PiperOrigin-RevId: 318092647
2020-06-26 14:04:37 -04:00
haodong
4337eeaa0d
[ProgressIndicator] Added the custom drawable support (2/7)
...
- Added an final drawable class for all indeterminate types.
- Marked DeterminateDrawable as public and final.
PiperOrigin-RevId: 318088718
2020-06-26 14:03:49 -04:00
haodong
02c3b3d398
[ProgressIndicator] Added the custom drawable support (1/7)
...
- Added an interface for indeterminate animator delegate.
- Marked DrawingDelegate to public.
PiperOrigin-RevId: 318084805
2020-06-26 14:03:06 -04:00
haodong
c5f900b7d5
[ProgressIndicator] Fixed CircularIndeterminateDrawable not resetting animator properly after switching to determinate mode.
...
PiperOrigin-RevId: 317294538
2020-06-19 13:54:27 -04:00
Mattia
924ac3fe85
[ProgressIndicator] Add new minHideDelay property
...
Resolves https://github.com/material-components/material-components-android/pull/1411
Resolves https://github.com/material-components/material-components-android/issues/1382
GIT_ORIGIN_REV_ID=46d32f9bbb8d0f4c4ba8c7ec36b0a5d0cb61f0ae
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 317108572
2020-06-18 13:23:25 -04:00
haodong
5febeba67e
[ProgressIndicator] Added auto-cap to limit the indicator corner radius equal to or less than half of the indicator width.
...
PiperOrigin-RevId: 316531091
2020-06-15 23:58:11 -07:00
haodong
48c4ef019c
[ProgressIndicator] Added support of rounded corners.
...
- Added attribute cornerRadius.
- Added rounded corner support for linear determinate and indeterminate (non-seamless) mode.
- Added rounded corner support for circular determinate and indeterminate mode.
- Added screenshot tests.
- Modified show cases in Catalog to demo this feature.
PiperOrigin-RevId: 316400672
2020-06-15 23:54:35 -07:00
Mattia
584d72555a
[ProgressIndicator] Fix for non dismissable progress indicator
...
Resolves https://github.com/material-components/material-components-android/pull/1391
GIT_ORIGIN_REV_ID=e657fa9409d1e16481f2383ddaa00942c874b8a2
PiperOrigin-RevId: 316209739
2020-06-15 23:52:06 -07:00
marianomartin
63119cfa94
Fix potential NPE when progress indicators change visibility during initialization
...
PiperOrigin-RevId: 313826176
2020-06-01 16:45:21 -04:00
marianomartin
1303e400c1
Change Progress indicator to only show if they are already visible
...
PiperOrigin-RevId: 313327751
2020-05-27 13:48:38 -04:00
marianomartin
4db3fef49d
Change progress indicator trackColor to correctly calculate default alpha
...
PiperOrigin-RevId: 309824054
2020-05-07 09:39:42 -04:00
marianomartin
cc88816b82
[ProgressIndicator] initial commit
...
ORIGINAL_AUTHOR=pekingme
PiperOrigin-RevId: 306469609
2020-04-14 22:11:45 -04:00