32 Commits

Author SHA1 Message Date
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
hunterstich
8aab29ad97 Automated g4 rollback of changelist 487605338
PiperOrigin-RevId: 490469343
2022-11-23 15:14:05 -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
hunterstich
0b72e3ad4f Automated g4 rollback of changelist 487228839
PiperOrigin-RevId: 487605338
2022-11-18 16:53:43 -05:00
hunterstich
3fc3ec1153 [Switch] Update animations to use motion themeing.
PiperOrigin-RevId: 487228839
2022-11-10 18:22:05 +00:00
pekingme
112378dcfd [Switch] Removed resources from deprecated tokens.
PiperOrigin-RevId: 478539069
2022-10-03 19:38:45 +00:00
pekingme
1ef53e2b37 [Tokens] Upgraded to v0.126 for 1p and 3p.
PiperOrigin-RevId: 475355503
2022-09-20 12:59:30 -04:00
leticiars
00dfeaca53 [Internal] Merge DrawableUtils classes
PiperOrigin-RevId: 466426273
2022-08-10 13:14:53 +00:00
AshutoshSundresh
aa59bddca9 [MaterialSwitch] Move public.xml to the correct directory
Resolves https://github.com/material-components/material-components-android/pull/2759

GIT_ORIGIN_REV_ID=4e1baf0e5cc535c9e346e9a406063e47a9fe5b09
PiperOrigin-RevId: 464561173
2022-08-04 14:28:43 -04:00
leticiars
8fae47a39e [Checkbox] Updated checkbox to M3 look.
The checkbox is now composed of an `app:buttonCompat` button drawable (the squared
icon) and an `app:buttonIcon` icon drawable (the checkmark icon) layered on top
of it. The animation has also been updated.

PiperOrigin-RevId: 462244130
2022-07-22 15:22:30 +00:00
conradchen
e968929c08 [Switch] Update to AppCompat 1.5.0-beta01 and remove workarounds (also update compileSdkVersion/targetSdkVersion to 32)
PiperOrigin-RevId: 460970462
2022-07-14 18:18:56 +00:00
pekingme
cc317e15d7 [Tokens] Included parent display group names in the output file comments.
PiperOrigin-RevId: 457503467
2022-06-27 17:25:31 -04:00
conradchen
e9b5328490 [Switch] Tokenize the new switch styles
PiperOrigin-RevId: 452763569
2022-06-03 11:56:35 -07:00
pekingme
d0c3ea0eb5 [Tokens] Upgraded token resources to v0.99.
PiperOrigin-RevId: 452574141
2022-06-02 15:41:39 -07:00
conradchen
072578dde6 [Switch] Refine tinting logic to have better performance
Move the unchecked and checked state calculation off from each invalidate() call to onCreateDrawableState() so we can make sure we will only calculate the states when needed.

PiperOrigin-RevId: 452092712
2022-05-31 13:50:12 -07:00
conradchen
2f33cfc213 [Switch] Add thumb icon tint to the new switch styles
PiperOrigin-RevId: 451422588
2022-05-31 13:32:39 -07:00
conradchen
06bba009d4 [Switch] Add associated text styles
Also increases the min height to match the min touch target size.

PiperOrigin-RevId: 450987495
2022-05-26 16:16:11 -04:00
conradchen
1e08c680d4 [Switch] Add material switch style to M3 themes
Also add public attributes to public.xml

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

PiperOrigin-RevId: 450782655
2022-05-25 15:17:43 -04:00
conradchen
a3ca744776 [Switch] Create icon style for the new switch design
PiperOrigin-RevId: 450037491
2022-05-23 11:19:33 -04:00
pekingme
65120923d5 [Token][Switch] Added token generated resources.
PiperOrigin-RevId: 449904422
2022-05-23 11:04:09 -04:00
conradchen
80d5ba5894 [Switch] Internal change
PiperOrigin-RevId: 449794117
2022-05-20 15:13:01 -04:00
conradchen
3b257c0169 [Switch] Support tinting thumb & track according to thumb position
PiperOrigin-RevId: 449760154
2022-05-19 14:27:11 -04:00
conradchen
72bac616cc [Switch] Add a workaround to get thumb position
PiperOrigin-RevId: 449249966
2022-05-17 14:56:30 -04: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
1e7bd27a29 [Switch] Implement track decoration in the new design
The default decoration will be a track outline in the unchecked state.

PiperOrigin-RevId: 449013525
2022-05-16 15:14:47 -04:00
conradchen
1414f9e480 [Switch] Add thumb and track drawables for the new switch design
PiperOrigin-RevId: 448253424
2022-05-12 17:18:46 -04:00
conradchen
b2a3fbe1f3 [Switch] Create a base skeleton of the new MaterialSwitch package/class
PiperOrigin-RevId: 447532839
2022-05-10 09:37:52 -04:00
dniz
e4c8535352 Remove backlayer and materialswitch
PiperOrigin-RevId: 195148145
2018-05-02 17:07:28 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00