pubiqq
bc2fdeadaf
[Internal] Prefer platform methods to compat ones
...
Resolves https://github.com/material-components/material-components-android/pull/4532
GIT_ORIGIN_REV_ID=180dec736f2521579e483317a4d537629d8f247b
PiperOrigin-RevId: 715494344
2025-01-15 18:06:07 +00:00
pfthomas
db9a6412ec
[MaterialSwitch] Amendments to thumb icon size support
...
Resolves https://github.com/material-components/material-components-android/pull/3364
PiperOrigin-RevId: 549627031
2023-07-20 22:17:48 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
pubiqq
2e85f06247
[MaterialSwitch] Add support for setting thumb icon size
...
Resolves https://github.com/material-components/material-components-android/pull/2960
GIT_ORIGIN_REV_ID=8af4d0f06e98f4ffced715b2dcde78d7186e1afb
PiperOrigin-RevId: 526984037
2023-04-25 17:08:20 -04:00
leticiars
00dfeaca53
[Internal] Merge DrawableUtils classes
...
PiperOrigin-RevId: 466426273
2022-08-10 13:14:53 +00: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
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
a3ca744776
[Switch] Create icon style for the new switch design
...
PiperOrigin-RevId: 450037491
2022-05-23 11:19:33 -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
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