6 Commits

Author SHA1 Message Date
connieshi
248e71adb7 Refactor logic to set BadgeDrawable's bounds into its own method.
PiperOrigin-RevId: 243326170
2019-04-19 15:59:16 -04:00
connieshi
7d8b2117a0 Automated g4 rollback of changelist 242675939
PiperOrigin-RevId: 242751222
2019-04-19 13:26:30 -04:00
connieshi
00ffe5eea8 Begin integrating BadgeDrawable into BottomNavigationView.
TODO:
- update javadocs to provide guidance on how to call Badging API.
- Save badge states.
- Support displaying badges when bottom navigation item doesn't show an icon.
PiperOrigin-RevId: 242675939
2019-04-19 13:21:35 -04:00
connieshi
efdf289139 Add helper method to remove a BadgeDrawable from its associated anchor.
PiperOrigin-RevId: 239109585
2019-03-22 16:49:03 -04:00
connieshi
238b658417 Add helper method for attaching a BadgeDrawable to its associated anchor.
For API 18+, the BadgeDrawable will be added as a view overlay.
For pre-API 18, the BadgeDrawable will be set as the foreground of a FrameLayout that is an ancestor of the anchor.

PiperOrigin-RevId: 238661951
2019-03-22 16:15:41 -04:00
connieshi
9594f64985 Implement basic layout and drawing functionality for BadgeDrawable.
PiperOrigin-RevId: 237500680
2019-03-22 15:55:00 -04:00