12 Commits

Author SHA1 Message Date
pekingme
8e63e7fc29 [Shape] Added state list support to shape appearance and corner size.
PiperOrigin-RevId: 653356021
2024-07-22 18:26:34 +00:00
pekingme
b9a2ce93c1 Automated g4 rollback of changelist 650718631
PiperOrigin-RevId: 651858394
2024-07-22 18:23:58 +00:00
pekingme
2799892b5e [Shape] Added state list support to shape appearance and corner size.
PiperOrigin-RevId: 650718631
2024-07-10 19:21:00 +00:00
kendricku
cc125d9b47 [Shape] Add interpolation between default and an arbitrary corner radius for Android Material Views.
PiperOrigin-RevId: 626446451
2024-04-23 20:20:48 +00:00
conradchen
fd40fea461 [Switch] Override switch width set by AppCompat to respect the drawable width
PiperOrigin-RevId: 449238028
2022-05-17 14:55:17 -04:00
conradchen
413a047957 [ChipGroup] Fix ChipGroup.getCheckedChipIds() returns wrong state
In the Chip implementation, onCheckedChangeListener was called before onCheckedChangeListenerInternal. This causes an issue that in onCheckedChangeListener's callback, the checkable group's checked state is not updated yet, therefore ChipGroup.getCheckedChipIds() will return the outdated checked state.

Fixes this by overriding Chip.setOnCheckedChangeListener to get full control of the execution order between onCheckedChangeListener and onCheckedChangeListenerInternal.

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

PiperOrigin-RevId: 449100861
2022-05-17 11:04:03 -04:00
dsn5ft
9cd794c72f [Gradle] Remove unit test resources from main library source set and refactor the way test resources are configured/accessed
Resolves https://github.com/material-components/material-components-android/issues/1709

PiperOrigin-RevId: 449026115
2022-05-16 16:08:05 -04:00
Andre\u0301 Wachter
5ff917dc5f [MaterialShapeDrawable] Implement getAlpha()
Resolves https://github.com/material-components/material-components-android/pull/2479

GIT_ORIGIN_REV_ID=20d18f9732871b06aa9f95af0bd02f23b3e7995a
PiperOrigin-RevId: 412092198
2021-11-29 17:31:06 +00:00
marianomartin
8e8d20c94f Fix interpolation for MSD round rects
PiperOrigin-RevId: 296281750
2020-02-20 16:35:56 -05:00
dniz
6783f9e1cd Clean up naming of elevation overlay methods and attributes
PiperOrigin-RevId: 253283047
2019-06-18 13:34:29 -04:00
marianomartin
90837ec485 Internal cleanup
PiperOrigin-RevId: 249243403
2019-05-21 12:15:07 -04:00
dniz
1889b9fed6 Add support for translationZ to MaterialShapeDrawable
Useful for animating elevation shadows in Light themes and elevation overlays in Dark Themes

PiperOrigin-RevId: 243260129
2019-04-19 15:54:27 -04:00