19 Commits

Author SHA1 Message Date
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
pubiqq
23aca03255 [Internal] Remove pre-Lollipop checks
Resolves https://github.com/material-components/material-components-android/pull/4266

GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +00:00
Material Design Team
546ca1087f [Drawable] Resolve class verification issues for DrawableUtils
Post appreduce, a lot of DrawableUtils methods are horizontally merged into other classes. Since these methods are not available on older Android platform versions, ART instructs the runtime to re-verify when the app loads. When one of these methods is present in a very large horizontally merged class, it can take a lot of time to verify. On Pixel 2XL for Android Q, I have seen 12-15ms being very common.

Related docs and see linked bug:
https://chromium.googlesource.com/chromium/src/+/HEAD/build/android/docs/class_verification_failures.md#understanding-the-reason-for-the-failure

PiperOrigin-RevId: 605643227
2024-02-12 18:03:15 +00:00
pubiqq
a10c5083a9 [MaterialSwitch] Fix drawable scaling for API < 23
Resolves https://github.com/material-components/material-components-android/pull/3513

GIT_ORIGIN_REV_ID=d6b880efdab77b6c1171b3f53ee8d3fcf568f838
PiperOrigin-RevId: 563748930
2023-09-08 13:08:54 -04:00
pubiqq
0663019f45 [Color] Add ColorStateListDrawable support
Resolves https://github.com/material-components/material-components-android/pull/3538

GIT_ORIGIN_REV_ID=1bf9e320dc148e1bc959e7577372d3a393f35574
PiperOrigin-RevId: 563258432
2023-09-07 12:37:54 +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
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
pubiqq
8cd2341a79 [Internal] Set the outline to a path whenever possible
Resolves https://github.com/material-components/material-components-android/pull/2934

GIT_ORIGIN_REV_ID=2ef0a3a6d9aa130e652fccbfc3d79f1345f2b32c
PiperOrigin-RevId: 478146360
2022-10-03 19:15:11 +00:00
leticiars
b8e1b57804 [Checkbox] Fixed NPE crash due to layer drawable's constant state issue in APIs < 23.
PiperOrigin-RevId: 470825166
2022-08-30 11:28:16 -04:00
leticiars
00dfeaca53 [Internal] Merge DrawableUtils classes
PiperOrigin-RevId: 466426273
2022-08-10 13:14:53 +00:00
conradchen
d1895cdd35 [Tab] Mutate selected indicator drawable when it's being set
Wrapping and mutating a given drawable which is supposed to be tinted is a standard practice across the Material library. This CL applies the same logic to Tab's selected indicator drawables and also refactoring the relevant logic a bit to make it cleaner.

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

PiperOrigin-RevId: 460765659
2022-07-13 19:53:29 +00:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
cketcham
b2deaa3f22 Update the radius of the Slider RippleDrawable
PiperOrigin-RevId: 286239127
2019-12-18 15:56:40 -05:00
cketcham
4e1da2a4be Update Slider to use RippleDrawable for Lollipop and above
PiperOrigin-RevId: 276528198
2019-11-01 13:28:40 -07:00
cketcham
499261bb27 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 264899386
2019-08-27 16:32:43 -04:00
marianomartin
a648bac7b2 Merge DrawableUtils classes
PiperOrigin-RevId: 257022779
2019-07-09 12:56:12 -04:00
dniz
1f244318d8 Add @hide to all @RestrictTo annotations that are missing it
PiperOrigin-RevId: 243646339
2019-04-19 16:29:30 -04:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00