31 Commits

Author SHA1 Message Date
hunterstich
9a16aa471b [NavigationBar] Update active indicator to new shape system.
PiperOrigin-RevId: 446760684
2022-05-05 15:16:50 -04:00
conradchen
adbcf8cbbc [M3][BottomNavigation] Set backgroundTint explicity to @null in M3 bottom navigation syles
PiperOrigin-RevId: 410346437
2021-11-29 16:27:58 +00:00
hunterstich
c6d0f7c785 [M3][NavigationRail] Added new navigation rail styles.
PiperOrigin-RevId: 397846116
2021-09-21 08:35:12 -07:00
hunterstich
f2eaf0c40a [M3][NavigationBar] Reorganize resources.
PiperOrigin-RevId: 392693833
2021-08-24 15:53:56 -04:00
hunterstich
999b24783c [M3][NavigationBar] Add new navigation bar styles.
PiperOrigin-RevId: 392688526
2021-08-24 15:52:44 -04:00
hunterstich
943c4f0eed [BottomNavigationView] Updated to explicitly read and set minimum height.
PiperOrigin-RevId: 368831987
2021-04-16 18:02:00 -04:00
hunterstich
7eea2b25bc [Navigation bar] Add active indicator.
PiperOrigin-RevId: 368261456
2021-04-16 12:42:14 -04:00
raajkumars
aca5bfb6f7 [Bottom Navigation] Extracted common logic from bottom navigation component into navigation package.
PiperOrigin-RevId: 345029590
2020-12-02 09:55:26 -05:00
raajkumars
be616abf49 [internal] Moved common ids from bottom navigation to central location so that it can be reused.
PiperOrigin-RevId: 340255767
2020-11-03 11:11:54 -05:00
Material Design Team
cf9027f098 [TabLayout] Add a localized a11y string for a tab
PiperOrigin-RevId: 338706340
2020-10-23 12:31:51 -07:00
hunterstich
8ec11a1460 [BottomNavigationView] Updated menu item selection animation to match spec
Bottom nav item labels now slide up when fading in instead of scaling.

PiperOrigin-RevId: 331163684
2020-09-11 14:51:00 -04:00
Material Design Team
bcaca401c2 Fix the role description of the GMDC bottom navigation item view's accessibility node.
It was a raw string "Tab", which results in it being never translated. Thus, when Talkback announces the bottom navigation item in other languages, it still announces "Tab" in English.

PiperOrigin-RevId: 310158712
2020-05-07 11:55:49 -04:00
Material Design Team
1febcf94b1 Automated g4 rollback of changelist 292560239
PiperOrigin-RevId: 292606404
2020-01-31 16:53:08 -05:00
Material Design Team
811ea17e60 Add roleDescriptions to tabs for accessibility
PiperOrigin-RevId: 292560239
2020-01-31 13:38:39 -05:00
dniz
37534561f2 Add component styles that swap between primary and surface styles depending on light vs dark theme
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application

PiperOrigin-RevId: 256208965
2019-07-03 14:11:49 -04:00
afohrman
d77864bbbf Support ColorDrawables as the basis for MaterialShapeDrawable initialization in
BottomNavigationView.

This commit removes backgroundTint from the BottomNavigationView styles and instead sets the respective default colors as ColorDrawable backgrounds of the BottomNavigationView. This allows BottomNavigationView to respect colors set in android:background without requiring the client to override backgroundTint.

PiperOrigin-RevId: 244669964
2019-04-29 15:16:23 -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
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
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
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
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
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
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
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
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00