15 Commits

Author SHA1 Message Date
pekingme
ecb6284a8b [Shape] Fixed overlapping of compat shadow of inner corners.
Resolves https://github.com/material-components/material-components-android/issues/1388

PiperOrigin-RevId: 454893622
2022-06-14 10:21:03 -07:00
Material Design Team
cfc00aa5a3 Update android core class definitions across material
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
marianomartin
ef8ad4dff4 [BottomAppBar] Support fab with rounded corners in cradle
PiperOrigin-RevId: 364483537
2021-03-24 10:29:38 -04:00
marianomartin
26fc10cfc9 [MaterialShapeDrawable] Fixed exception with int division
Resolves https://github.com/material-components/material-components-android/issues/937

PiperOrigin-RevId: 319778531
2020-07-06 11:10:33 -04:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
haodong
9f48006d62 [MaterialShapeDrawable] Fixed shadow paint not updating color while setting shadow color.
Resolves https://github.com/material-components/material-components-android/issues/909

PiperOrigin-RevId: 290750682
2020-01-21 09:11:11 -08:00
marianomartin
781e79f4b1 Disable MaterialCardView bitmap drawing
PiperOrigin-RevId: 281825046
2019-11-22 21:27:37 +00:00
cketcham
11755edd24 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 264942383
2019-08-29 10:20:46 -04:00
dniz
cc73c2a630 Update TODOs
PiperOrigin-RevId: 259535844
2019-07-23 11:21:39 -04:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
isabellekim
2997b6995f Add shadow compat support for cut corners and triangle edge treatments, updating ShapePath to add extra shadow arcs when needed:
+ Updates LineShadowOperation to call drawEdgeShadow with a horizontal edge
+ ShapePath has a start & end shadow angle and will add shadow arcs to fill in gaps between shadow operations

PiperOrigin-RevId: 219686107
2018-11-01 16:22:14 -07:00
isabellekim
b07fdf2459 Remove anti-aliasing from cornerShadowPaint (to allow corner shadows to line up with edge shadows along angles)
PiperOrigin-RevId: 219575570
2018-11-01 16:20:43 -07:00
cketcham
ab1992a2ba Fix shadow rendering and add shadow rotation angle for MaterialShapeDrawable
PiperOrigin-RevId: 218576270
2018-10-28 19:13:20 -04:00
cketcham
b623595c7f Fix logic which determines when shadow should be drawn inside the bounds of an arc vs outside
PiperOrigin-RevId: 218525816
2018-10-28 19:12:19 -04:00
cketcham
2edfef1a6c Draw compatibility shadows if the shape is concave or native shadows aren't supported.
PiperOrigin-RevId: 217689320
2018-10-28 18:28:35 -04:00