164 Commits

Author SHA1 Message Date
pekingme
ad97194108 [ProgressIndicator] Added wavy active indicator drawing in Linear type.
PiperOrigin-RevId: 614773805
2024-03-15 17:28:49 +00:00
pekingme
28cc2441d0 [Tokens] Updated to version 2.3.4.
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
dd8f6bebdd [ProgressIndicator] Updated inactive track color from primary container to secondary container.
PiperOrigin-RevId: 607113929
2024-02-14 23:56:24 +00:00
pekingme
ee7b4bddb4 [Tokens] Added formatting to break long lines and differentiate different comments.
PiperOrigin-RevId: 605684816
2024-02-12 18:03:59 +00:00
pekingme
356067295f [ProgressIndicator] Cleanup
PiperOrigin-RevId: 605381014
2024-02-12 16:23:16 +00:00
pekingme
89212044a9 [Tokens] Updated to v0.213.
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
pekingme
02bd528c1c [ProgressIndicator] Internal cleanup.
PiperOrigin-RevId: 601910223
2024-01-30 19:28:24 +00:00
pekingme
9c216128c6 [ProgressIndicator] Updated the setter of track thickness to not update track corner radius.
PiperOrigin-RevId: 601245058
2024-01-25 19:54:54 +00:00
pekingme
08d7ded67b [Tokens] Upgraded to v0.207.
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
pekingme
ae11eb4dc2 [ProgressIndicator] Added the limit to not have stop indicator size bigger than track thickness.
PiperOrigin-RevId: 599948126
2024-01-22 18:25:41 +00:00
pekingme
97f18a37a4 [ProgressIndicator] Fixed the rounded ends overlapping bug with semi-transparent track/indicator color in Circular default style.
Workaround is applied by using the Cap.ROUND when corner radius is half of the track thickness (the case for M3 default Circular style). It doesn't fix the overlap for smaller corner radius with semi-transparent color.

PiperOrigin-RevId: 599942498
2024-01-22 18:24:58 +00:00
pekingme
7479be226f [ProgressIndicator] Internal updates.
PiperOrigin-RevId: 598978387
2024-01-17 19:47:56 +00:00
pekingme
b597c1e218 [ProgressIndicator] Removed the call to draw a transparent full track.
PiperOrigin-RevId: 597992011
2024-01-16 19:23:30 +00:00
pekingme
5e185db21d [ProgressIndicator] Flip the canvas for different circular directions.
PiperOrigin-RevId: 597652047
2024-01-16 19:15:09 +00:00
pekingme
f5a54d2264 [ProgressIndicator] Split stop indicator drawing from indicator drawing.
PiperOrigin-RevId: 597537696
2024-01-16 19:14:11 +00:00
pekingme
6fd920a2c1 [ProgressIndicator] Added ActiveIndicator to improve readability.
- Removed unnecessary access modifiers.
- Removed unnecessary doc comments.

PiperOrigin-RevId: 597062929
2024-01-10 18:58:32 +00:00
pekingme
98284e74ad [ProgressIndicator] Fixed ESCAPE animation in linear and added ESCAPE animation in circular.
PiperOrigin-RevId: 595720674
2024-01-04 19:24:29 +00:00
pfthomas
b84e6549d4 [NTC][ProgressIndicator] Internal changes
PiperOrigin-RevId: 595708057
2024-01-04 19:23:44 +00:00
pekingme
52b48450fc [ProgressIndicator] Updated to use the same drawing delegate object between determinate drawable and indeterminate drawable to prevent inconsistent drawings when specs update.
PiperOrigin-RevId: 595468907
2024-01-03 21:01:37 +00:00
pekingme
93b30109b0 [ProgressIndicator] Added missing graphics updates when spec changes.
PiperOrigin-RevId: 592008309
2023-12-19 12:17:32 -08:00
pfthomas
15b533fffb [NTC][ProgressIndicator] Update styles
Update the Material ProgressIndicator to be compliant with the latest accessibility requirements.

PiperOrigin-RevId: 591927327
2023-12-19 12:15:54 -08:00
pfthomas
5843e61031 [NTC][ProgressIndicator] Internal changes
PiperOrigin-RevId: 588545406
2023-12-07 18:59:05 +00:00
pfthomas
fb6a97ce2c [NTC][ProgressIndicator] Internal changes
PiperOrigin-RevId: 588435272
2023-12-06 08:48:11 -08:00
pekingme
22e054ba68 [ProgressIndicator] Added static drawable for Circular type when system animator is disabled.
PiperOrigin-RevId: 582068647
2023-11-14 19:49:43 +00:00
pfthomas
bc5987379e [NTC][ProgressIndicator] Internal changes
PiperOrigin-RevId: 581401427
2023-11-13 15:12:51 +00:00
pekingme
4ccaaaa31d [Tokens] Upgraded to v0.203
PiperOrigin-RevId: 579928128
2023-11-08 15:12:21 +00:00
pekingme
637362d597 [Tokens] Upgraded to v0.195
PiperOrigin-RevId: 579905417
2023-11-06 20:27:15 +00:00
pekingme
0463c507d7 [Tokens] Upgraded to v0.185
PiperOrigin-RevId: 579904837
2023-11-06 20:26:18 +00:00
pekingme
bfee8a74d7 [Tokens] Upgraded to v0.175.
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07:00
pekingme
8204856dd4 [Token][Color] Upgraded to v0.170 for tonal surface colors.
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
ekager
3b0fd5868e [ProgressIndicator] Closes #2361 - Allows extending LinearProgressIndicator and CircularProgressIndicator
Resolves https://github.com/material-components/material-components-android/pull/3416

GIT_ORIGIN_REV_ID=7e3b997ae796d047c7c0f381af51397f5c29a1f8
PiperOrigin-RevId: 547902662
2023-07-17 15:57:39 +00:00
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
pekingme
9f1caa2c64 [Tokens] Upgraded to v0.162.
PiperOrigin-RevId: 517446114
2023-03-20 21:23:07 +00:00
conradchen
0ce6ae458f [ProgressIndicator] Fix linear progress indicator with corner radius
When corner radius of a linear progress indicator is larger than 0, the behavior it's confusing because when the progress fraction is slightly larger than 0, the progress indicator will suddenly show with a width of twice the corner radius.

Fixes this by adjusting the indicator startX and endX correctly so the visible indicator length is always proportional to the progress.

Resolves https://github.com/material-components/material-components-android/issues/2940

PiperOrigin-RevId: 509552399
2023-02-15 10:32:05 -08:00
pekingme
23dc14ca3a [Tokens] Updated to v0.157.
PiperOrigin-RevId: 505978081
2023-01-31 20:01:13 +00:00
pekingme
2019bf90be [Tokens] Upgraded to version v0.147.
PiperOrigin-RevId: 492551875
2022-12-02 18:34:12 -05:00
pekingme
17e3581642 [Tokens] Upgraded to v0.145
PiperOrigin-RevId: 492291163
2022-12-02 15:11:37 +00:00
pekingme
8ee6c00f73 [Tokens] Upgraded to v0.142
Added lStar CSLs for new neutral palettes in v31 and above.

PiperOrigin-RevId: 491693724
2022-11-30 17:31:11 -05:00
pekingme
12ef329276 [Tokens] Upgraded to v0.141
PiperOrigin-RevId: 490324728
2022-11-23 15:13:20 -05:00
pekingme
b2b546b205 [Tokens] Internal updates.
PiperOrigin-RevId: 490295053
2022-11-23 15:11:19 -05:00
pekingme
ed77ab36cc [Tokens] Refreshed outdated component token resources files.
PiperOrigin-RevId: 477262742
2022-09-28 00:07:41 +00:00
pekingme
ab063b7b7f [ProgressIndicator] Integrates tokens into M3 styles.
PiperOrigin-RevId: 474592726
2022-09-15 14:20:29 -04:00
pubiqq
26aa22b26d [ProgressIndicator] Finish all visibility animations when animate = false
Resolves https://github.com/material-components/material-components-android/pull/2740

GIT_ORIGIN_REV_ID=3b1513b589f4f0fa7d3c3f47ccb74661a4ba7e2a
PiperOrigin-RevId: 465570258
2022-08-08 10:49:05 -04:00
pekingme
04f4a1abc0 [ProgressIndicator] Renamed res/animator to res/anim.
PiperOrigin-RevId: 458269849
2022-07-06 04:56:28 -07:00
conradchen
71bfaca706 [ProgressIndicator] Fix ProgressIndicator's size under a complex measurement
When a ProgressIndicator doesn't have a preferred width or height, its size will be calculated incorrectly as we rely on its super class, ProgressBar's onMeasure() method to decide its size. But ProgressBar doesn't support "unspecified" preferred width/height, in this case it will set measured dimensions to fixed values based on the incorrect "preferred size".

Fixes this issue by fallback to the default View.onMeasure() logic when no preferred width or height is specified.

Resolves https://github.com/material-components/material-components-android/issues/2163

PiperOrigin-RevId: 452795304
2022-06-03 12:10:03 -07:00
conradchen
69e484dd1e [ProgressIndicator] Make progress indicator drawables scalable by setBounds()
Resolves https://github.com/material-components/material-components-android/issues/2364

PiperOrigin-RevId: 451214292
2022-05-26 16:16:49 -04:00
Sebastian K\u00fcrten
61cbb8c9a6 [ProgressIndicator] Fix indeterminate progress indicator not working on API 22
Resolves https://github.com/material-components/material-components-android/pull/2675
Resolves https://github.com/material-components/material-components-android/issues/2028

GIT_ORIGIN_REV_ID=eaf535ee18b85d8c062eeb58f59a7ea2fdb91f48
PiperOrigin-RevId: 445914955
2022-05-02 09:31:49 -04:00
pubiqq
3ca41be8f0 [General] Fix typos
Resolves https://github.com/material-components/material-components-android/pull/2654

GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
dsn5ft
9ae56ceedd [Javadocs] Remove all broken attr links from Javadocs
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00