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
Material Design Team
41274ddb1f
Migrate transition android support libraries to androidx.
...
PiperOrigin-RevId: 239881112
2019-03-26 17:30:06 -04:00
dniz
833258417d
Add @RequiresApi(VERSION_CODES.LOLLIPOP) to overriden setElevation() methods
...
that call super.setElevation()
PiperOrigin-RevId: 239171863
2019-03-22 16:50:21 -04:00
afohrman
a1f6a72f38
Update BottomNavigationView's Widget.MaterialComponents style variants to use
...
MaterialShapeDrawable.
PiperOrigin-RevId: 238732527
2019-03-22 16:18:56 -04:00
afohrman
d6cb34970a
Support elevation overlays for BottomNavigationView.
...
PiperOrigin-RevId: 238729801
2019-03-22 16:17:46 -04:00
Material Design Team
aae325e6b4
Migrate interpolator android support libraries to androidx.
...
PiperOrigin-RevId: 237401244
2019-03-08 10:11:23 -05:00
isabellekim
6c3b51022e
Adds itemRippleColor attribute to the BottomNavigationView as an alternative for itemBackground to support using ripples based on theme attributes pre-23. And update BottomNavigationView ripples to match TabLayout ripples.
...
PiperOrigin-RevId: 235237859
2019-02-24 14:37:45 -05:00
dniz
11df79f95c
Clean up Gradle build shorthands for appcompat/androidx libraries
...
PiperOrigin-RevId: 229369959
2019-01-18 14:13:26 -05:00
marianomartin
51bee714f6
Preserve icon after updating menus in BottomNav
...
PiperOrigin-RevId: 228525610
2019-01-10 17:11:43 -05:00
isabellekim
0055c665af
Remember the selected item when adding items to BottomNavigation's menu
...
PiperOrigin-RevId: 227140261
2019-01-10 15:53:25 -05:00
isabellekim
bd994a109a
Update icon tint alpha for colored BottomNav to be 0.6 per spec.
...
PiperOrigin-RevId: 227056603
2019-01-10 15:50:41 -05:00
marianomartin
6a7b1b2ce2
Mutate background drawable before changing tint
...
PiperOrigin-RevId: 226181425
2018-12-21 11:25:39 -05:00
cketcham
dc72aaeed4
Migrate Gradle build and sources to androidx
...
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
marianomartin
a083017520
Add backgroundTint support to BottomNav
...
PiperOrigin-RevId: 225384496
2018-12-21 10:41:14 -05:00
isabellekim
fa528c4403
Remove padding from large text for BottomNavigation to match small text. Guidance is to use short text in bottom navigation so this should not have a visual effect since the width of each item is equally divided with a max width (in other words, the padding doesn't affect the width). However, when system font size is increased, even short text can be cut off by the padding and this gives a little more room for the text.
...
PiperOrigin-RevId: 224345637
2018-12-06 12:07:07 -05:00
isabellekim
e8cb537a6e
Update color state lists for bottom navigation items to match specs.
...
PiperOrigin-RevId: 217318149
2018-10-28 18:13:08 -04:00
isabellekim
fdbf02569b
Ensures that bottom navigation item background Drawables don't share the same constant state.
...
PiperOrigin-RevId: 216355891
2018-10-11 18:13:32 -04:00
marianomartin
1536adecf2
Fix color subsystem for Bottom Navigation
...
PiperOrigin-RevId: 210544385
2018-08-28 16:42:21 -04:00
marianomartin
7e3ec00320
Fix broken gradle build because of duplicated attr
...
PiperOrigin-RevId: 209415765
2018-08-20 11:33:06 -04:00
marianomartin
ba696b6984
Verify typography subsystem is complete for Bottom Navigation
...
PiperOrigin-RevId: 204798141
2018-07-17 18:09:19 -04:00
afohrman
5b2d4d667a
Allow bottom nav items to gain focus on keyboard traversal.
...
Set the bottom nav items to always be focusable. This addresses a bug in which bottom nav items didn't gain focus by keyboard pre-O.
PiperOrigin-RevId: 204518309
2018-07-17 18:08:53 -04:00
dniz
91196d1163
Add get/setItemBackground() Drawable methods to BottomNavigationView
...
PiperOrigin-RevId: 198911383
2018-06-04 10:50:40 -04:00
afohrman
0518a3d651
Add missing public attributes.
...
Looks like some styles and component style attributes slipped by.
PiperOrigin-RevId: 198762794
2018-05-31 16:35:29 -04:00
marianomartin
663fd7abff
add res-public files
...
PiperOrigin-RevId: 198567215
2018-05-30 17:42:48 -04:00
afohrman
7af4ff7ee9
Remove resource version of label visibility mode setter.
...
This method does not provide clear value to the user. I considered deprecating it, but since it was introduced in an alpha release, it can just be deleted.
PiperOrigin-RevId: 193966844
2018-04-30 11:57:08 -04:00
afohrman
2f2ba0ce3d
Add "enabled" suffix to itemHorizontalTranslation attribute name.
...
The suffix makes it clearer that the attribute is boolean.
This attribute was introduced in an alpha release, so it is fine to rename.
PiperOrigin-RevId: 193964290
2018-04-30 11:56:12 -04:00
afohrman
95ac4dacfe
Remove resource version of setItemHorizontalTranslation.
...
A resource version for this method does not provide much value to the user.
PiperOrigin-RevId: 193962413
2018-04-30 11:54:52 -04:00
Material Design Team
b3c9024218
[a11y] Set the content description of BottomNavigation navigation items explicitly, instead of relying on the label text.
...
PiperOrigin-RevId: 193724313
2018-04-30 11:36:37 -04:00
afohrman
785b44a688
Change default itemIconSize for bottom nav.
...
Update default icon size from 0dp to 24dp. 24dp is a more reasonable default to be used in cases where itemIconSize is not set in the theme or style provided.
PiperOrigin-RevId: 193675565
2018-04-30 11:36:15 -04:00
afohrman
fcbc5b560f
Change itemIconSize to use pixels instead of dp.
...
PiperOrigin-RevId: 193513323
2018-04-30 11:33:42 -04:00
dniz
9ca33544ac
Update package name to com.google.android.material
...
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00