8 Commits

Author SHA1 Message Date
afohrman
7fb37e86ba Make MaterialShapeDrawable anti-alias its Paint.
Anti-aliasing the Paint by default eliminates the appearance of jagged edges and corners.

Anti-aliasing is currently supported by calling setPaintFlags() on MaterialShapeDrawable, but it is not yet enabled by default.

PiperOrigin-RevId: 212709536
2018-09-14 11:00:52 -04:00
afohrman
1335815927 Fix MaterialShapeDrawable's handling of tint.
Before this change, MaterialShapeDrawable incorrectly handled ColorStateLists. Only the color defined "last" in a ColorStateList was used. This is because MaterialShapeDrawable was not properly updating and handling state changes. This change fixes the issue by updating the tint filter appropriately and overriding some methods which should have been overridden.

PiperOrigin-RevId: 210779870
2018-08-31 11:12:24 -04:00
afohrman
49dc5f4e7c Make MaterialShapeDrawable respect to InsetDrawables.
Before this change, MaterialShapeDrawable did not draw with respect to InsetDrawables. The problem was that MaterialShapeDrawable was using the Canvas to determine where to draw, rather than the bounds. This change reworks MaterialShapeDrawable to use the bounds to calculate and draw the shape's path, rather than the Canvas.

PiperOrigin-RevId: 210724227
2018-08-29 11:33:35 -04:00
marianomartin
585e2fede0 Remove constructor comments
PiperOrigin-RevId: 209762154
2018-08-28 16:34:43 -04:00
Material Design Team
ee9e754c0a Removed unnecessary complexity
PiperOrigin-RevId: 206320111
2018-08-02 18:02:23 -07:00
cketcham
40696b02b7 Fix jagged edges on cutout for BottomAppBar
PiperOrigin-RevId: 206194466
2018-08-02 17:57:09 -07:00
Material Design Team
4983b60975 Fix potential bug with shared pointF
PiperOrigin-RevId: 206128392
2018-08-02 17:55:02 -07:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00