8 Commits

Author SHA1 Message Date
connieshi
a2c5d8956d Add static methods to return BadgeDrawable's default background and text color for the specified context.
PiperOrigin-RevId: 242111627
2019-04-05 16:01:05 -04:00
connieshi
37a62a805b s/clearBadgeValue/clearBadgeNumber
PiperOrigin-RevId: 240199703
2019-03-26 17:35:00 -04:00
connieshi
e4e6052713 Refactor BadgeDrawable so its center coordinates can be updated.
PiperOrigin-RevId: 239433981
2019-03-22 17:02:02 -04:00
connieshi
c6ce174cb8 Call Resources#getDimensionPixelSize instead of Resources#getDimenion.
PiperOrigin-RevId: 238480749
2019-03-22 16:09:54 -04:00
connieshi
b9112b2811 Viewoverlay is only available on API 18+. To support pre API-18, change BadgeDrawable to inherit from Drawable instead of MaterialShapeDrawable. Instead, add an instance of MaterialShapeDrawable as a member variable to BadgeDrawable.
PiperOrigin-RevId: 238289676
2019-03-22 16:06:49 -04:00
connieshi
9594f64985 Implement basic layout and drawing functionality for BadgeDrawable.
PiperOrigin-RevId: 237500680
2019-03-22 15:55:00 -04:00
isabellekim
db94f66f86 Updating MDC library build files to add testing of each target.
PiperOrigin-RevId: 235203056
2019-02-24 14:35:32 -05:00
connieshi
59bc6c3ebe Add boilerplate code (getters, setters, override abstract methods) define custom attributes for new custom drawable, BadgeDrawable.
PiperOrigin-RevId: 235037646
2019-02-24 14:30:54 -05:00