marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
connieshi
3d01309475
Change annotation on customBadgeParent parameter in BadgeUtils's methods to be @Nullable and add null check before referencing it.
...
Resolves https://github.com/material-components/material-components-android/issues/1322
PiperOrigin-RevId: 314122111
2020-06-01 17:00:19 -04:00
cketcham
530f3678d6
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264744296
2019-08-26 11:18:29 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
marianomartin
2de39fafe0
Internal cleanup
...
PiperOrigin-RevId: 253799644
2019-06-18 13:57:49 -04:00
connieshi
ddc56c800d
Add convenience method to check if VERSION.SDK_INT < VERSION_CODES.JELLY_BEAN_MR2 in BadgeUtils.
...
PiperOrigin-RevId: 249855393
2019-05-24 14:28:16 -04:00
connieshi
fc109fa13b
Save badge states in BottomNavigationMenuView.
...
PiperOrigin-RevId: 245446090
2019-04-29 15:54:12 -07:00
connieshi
9d73854a97
Add SavedState for BadgeDrawable.
...
PiperOrigin-RevId: 244672502
2019-04-29 15:20:48 -07:00
connieshi
9d488d9208
Begin integrating BadgeDrawable into BottomNavigationView.
...
TODO:
- update javadocs to provide guidance on how to interact with BottomNavigation + Badging.
- Save badge states.
- Support displaying badges when bottom navigation item doesn't show an icon.
PiperOrigin-RevId: 244197244
2019-04-19 21:51:25 -04:00
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