mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-02 23:17:08 +08:00
By default, the elevation shadows are only enabled for API level 28 and above, because Paint shadows are not supported with hardware acceleration below API level 28. If enabled for below API level 28, then the shadows will be drawn using MaterialShapeDrawable, however this may cause performance issues. Resolves https://github.com/material-components/material-components-android/issues/1126 PiperOrigin-RevId: 310602814 (cherry picked from commit 1094b480809fa4b8c31814b85cd70c0b23fe9dae)