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