Ga\u00ebtan Muller
b3fe6a7f61
[Cleanup] Remove redundant version checks for api <= 19.
...
Resolves https://github.com/material-components/material-components-android/pull/3849
GIT_ORIGIN_REV_ID=47bb2fcc8031740e5a7d4f741f1ada2af025e126
PiperOrigin-RevId: 632154861
2024-05-09 18:46:02 +00:00
rightnao
cf143d0760
[NavigationBar] Modify test usage to use icon container so we don't have to special case the existence of the icon container
...
PiperOrigin-RevId: 627837170
2024-04-26 17:49:54 +00:00
pfthomas
9b09b693d9
[Tokens] Update tokens to v4.0.0
...
PiperOrigin-RevId: 626141198
2024-04-19 21:18:49 +00:00
pekingme
28cc2441d0
[Tokens] Updated to version 2.3.4.
...
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
ee7b4bddb4
[Tokens] Added formatting to break long lines and differentiate different comments.
...
PiperOrigin-RevId: 605684816
2024-02-12 18:03:59 +00:00
pekingme
89212044a9
[Tokens] Updated to v0.213.
...
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
pekingme
08d7ded67b
[Tokens] Upgraded to v0.207.
...
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
dsn5ft
c8b9b1c0bb
[Predictive Back][Navigation Drawer] Animate corners during predictive back when no drawerLayoutCornerSize is set
...
PiperOrigin-RevId: 596056382
2024-01-05 23:58:37 +00:00
pekingme
4ccaaaa31d
[Tokens] Upgraded to v0.203
...
PiperOrigin-RevId: 579928128
2023-11-08 15:12:21 +00:00
pekingme
637362d597
[Tokens] Upgraded to v0.195
...
PiperOrigin-RevId: 579905417
2023-11-06 20:27:15 +00:00
pekingme
0463c507d7
[Tokens] Upgraded to v0.185
...
PiperOrigin-RevId: 579904837
2023-11-06 20:26:18 +00:00
pekingme
bfee8a74d7
[Tokens] Upgraded to v0.175.
...
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07:00
dsn5ft
bccbd4f778
[Predictive Back][NavigationView] Fix issue where predictive back is not enabled in NavigationView after rotating the screen or restarting the activity when the NavigationView is already opened as a drawer
...
Resolves https://github.com/material-components/material-components-android/issues/3593
PiperOrigin-RevId: 569181523
2023-10-02 13:38:12 +00:00
pubiqq
0663019f45
[Color] Add ColorStateListDrawable support
...
Resolves https://github.com/material-components/material-components-android/pull/3538
GIT_ORIGIN_REV_ID=1bf9e320dc148e1bc959e7577372d3a393f35574
PiperOrigin-RevId: 563258432
2023-09-07 12:37:54 +00:00
rightnao
eba40e9345
[NavigationView] Set material drawable background if the background has been set as a ColorStateList
...
resolves https://github.com/material-components/material-components-android/issues/3529
PiperOrigin-RevId: 558861471
2023-08-21 19:12:27 +00:00
pekingme
8204856dd4
[Token][Color] Upgraded to v0.170 for tonal surface colors.
...
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
rightnao
9f2e6864d2
[NavigationBar] Set badges to be null instead of removing them from the sparse array so that removing badges before restoring badge states will not override the current state
...
PiperOrigin-RevId: 546027617
2023-07-07 17:49:34 +00:00
rightnao
8b016a0e8b
[NavigationRail][Badge] Added bigger padding in between items on the navigation rail when font scale is large so there is more room for the badges when they are forced inside the view bounds
...
Also fixed bug with navigation rail items moving when there is a badge vs when there is no longer a badge, and adds 4dp padding between icon container/active indicator and label text as per specs https://m3.material.io/components/navigation-rail/overview
PiperOrigin-RevId: 540349399
2023-06-14 12:47:57 -07:00
afohrman
f2e70d2d66
[Android U] Replaced BuildCompat#isAtLeastU() method calls with explicit SDK checks for UPSIDE_DOWN_CAKE.
...
Before 1.12.0-alpha01 which was released on 6/7, BuildCompat#isAtLeastU() only returns true if API level is greater than 33 and the version running is a pre-release. Two things happened on 6/7 -- the version became a "platform stable" version, and core library version 1.12.0-alpha01 was released, which changes BuildCompat#isAtLeastU() to return true if the version is 34 and stable.
PiperOrigin-RevId: 540304068
2023-06-14 12:45:51 -07:00
hunterstich
a67a885668
[Predictive Back] Update components to use BackEventCompat
...
Clients should prefer listening to back events using androidx.activity.OnBackPressedCallback which has been updated to forward BackEventCompat objects in androidx.activity:activity:1.8.0-alpha05. This updates component predictive back APIs to take in BackEventCompat objects instead of android.window.BackEvent objects to simplify usage - getting rid of the need for version checks and object conversions.
PiperOrigin-RevId: 540290323
2023-06-14 12:44:53 -07:00
pfthomas
022e217770
[Navigation] Add itemTextAppearanceActiveBoldEnabled attr
...
Resolves https://github.com/material-components/material-components-android/issues/3191
Resolves https://github.com/material-components/material-components-android/issues/3293
PiperOrigin-RevId: 539977391
2023-06-14 15:14:24 +00:00
hunterstich
c031144d26
[NavigationView] Updated NavigationView to use ViewOutlineProvider to handle corner clipping when possible and remove drawerLayoutCornerClippingEnabled attribute.
...
PiperOrigin-RevId: 527633449
2023-04-27 16:38:17 -04:00
rightnao
3b2b827597
[NavigationRail] Integrate tokens and add shapeAppearance attribute
...
PiperOrigin-RevId: 525551069
2023-04-24 15:28:56 -04:00
dsn5ft
9405121f62
[Predictive Back] Update side container back helper to support containers with arbitrary child views
...
PiperOrigin-RevId: 525466973
2023-04-19 14:12:04 -07:00
rightnao
7bd9724078
[BottomNavigationView] Integrate tokens and add shape appearance support
...
PiperOrigin-RevId: 524919091
2023-04-19 13:53:26 -07:00
pekingme
9f1caa2c64
[Tokens] Upgraded to v0.162.
...
PiperOrigin-RevId: 517446114
2023-03-20 21:23:07 +00:00
hunterstich
0a0bff1489
Automated g4 rollback of changelist 515410464
...
PiperOrigin-RevId: 517409678
2023-03-20 21:21:59 +00:00
dsn5ft
2c297faf4b
[Predictive Back][Navigation Drawer] Infrastructure for back handling in components + Navigation Drawer predictive back support
...
- Added MaterialBackHandler interface and MaterialBackOrchestrator class
- Implemented animations in MaterialSideContainerBackHelper for NavigationView when DrawerLayout parent
PiperOrigin-RevId: 517399606
2023-03-20 21:10:22 +00:00
hunterstich
0c62df4a60
Automated g4 rollback of changelist 515343383
...
PiperOrigin-RevId: 515410464
2023-03-13 21:20:02 +00:00
hunterstich
1d2a59ba37
[NavigationRail][NavigationBar] Fixed active item focused state color not being visible.
...
The color state list used for the ripple to indicate focal/hover state was being set as the background of an item and being obscured by the active indicator. It is now the foreground and visible on top of the active indicator.
PiperOrigin-RevId: 515343383
2023-03-13 21:17:13 +00:00
hunterstich
e3b493f5eb
[NavigationView] Removed canvas clipping by default and added an option to enabled/disable manually
...
Clipping was used to clip navigation view and its children to a shape appearace. This is primarily useful when using a headerLayout that contains full bleed content that would obscure the top end corner shape. Material3 does not use as much imagery/color in the NavigationView header and disabling clipping by default is a nice performace improvement.
PiperOrigin-RevId: 513301639
2023-03-01 23:08:28 +00:00
pubiqq
e06a11982b
[Internal] Add compat method to get the screen size
...
Resolves https://github.com/material-components/material-components-android/pull/3221
GIT_ORIGIN_REV_ID=9323e23689386561d38b0c8c73114e0db7a30557
PiperOrigin-RevId: 509548792
2023-02-15 10:25:53 -08:00
pekingme
23dc14ca3a
[Tokens] Updated to v0.157.
...
PiperOrigin-RevId: 505978081
2023-01-31 20:01:13 +00:00
pekingme
355702f954
[BottomNavigation] Integrated tokens.
...
Created a new copy of CSL of icon/text/ripple tint for navigation bar. Before this change, they are shared with navigation rail.
Changed item text appearance from textAppearanceTitleSmall to textAppearanceLabelMedium
PiperOrigin-RevId: 503210110
2023-01-24 16:45:31 +00:00
hunterstich
a4107b9072
Automated g4 rollback of changelist 499286690
...
PiperOrigin-RevId: 499947079
2023-01-10 02:42:19 -05:00
pekingme
8c8db7e874
[NavigationView] Integrated tokens.
...
Changed the width from 280dp to 360dp
PiperOrigin-RevId: 499479992
2023-01-05 12:51:35 -05:00
hunterstich
acfd97f7ac
[NavigationBar][NavigationRail] Expose getMenuView
...
PiperOrigin-RevId: 499286690
2023-01-05 12:50:15 -05:00
rightnao
dfb9e81eeb
[Motion] Motion tweaks
...
PiperOrigin-RevId: 493105642
2022-12-06 15:22:34 -05:00
rightnao
cb384c5c2c
[NavigationView] Disable drawing left and right insets if the nav bar is not edge to edge
...
resolves https://github.com/material-components/material-components-android/issues/3016
PiperOrigin-RevId: 484304490
2022-10-28 07:44:17 -07:00
pfthomas
11e98f2d11
[BottomNavigationView][NavigationRailView] Updated active text label to use a bold typeface.
...
PiperOrigin-RevId: 476415508
2022-09-26 22:11:51 +00:00
pubiqq
88c448ed19
[NavigationView] Fix subheaderInsetEnd setter
...
Resolves https://github.com/material-components/material-components-android/pull/2979
Resolves https://github.com/material-components/material-components-android/issues/2975
Resolves https://github.com/material-components/material-components-android/issues/2976
GIT_ORIGIN_REV_ID=47659c14a2bc72f5c383e3b59dd9d45b60f6af95
PiperOrigin-RevId: 475868928
2022-09-22 17:36:02 +00:00
hunterstich
11578b34f3
[NavigationBar][NavigationRail] Updated item ripple to be contained within active indicator shape when enabled.
...
PiperOrigin-RevId: 453449225
2022-06-07 18:49:19 -07:00
pekingme
cfeb31a3f2
[Shape][NavView] Migrate M3 NavigationView style to new shape system.
...
PiperOrigin-RevId: 448042553
2022-05-11 15:01:26 -04:00
hunterstich
1995438305
[NavigationBar][NavigationRail] Updated active indicator to use new motion system.
...
PiperOrigin-RevId: 447463375
2022-05-09 14:48:11 -04:00
pubiqq
3ca41be8f0
[General] Fix typos
...
Resolves https://github.com/material-components/material-components-android/pull/2654
GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
jeremymuhia
cfc307ed4e
[NavigationView] fix navigation view item ripple
...
PiperOrigin-RevId: 434516655
2022-03-14 18:55:40 +00:00
raajkumars
18554d9cb5
[BottomNavigationView] Fix for IllegalArgumentException in preview mode.
...
Resolves https://github.com/material-components/material-components-android/issues/2489
PiperOrigin-RevId: 428861308
2022-02-15 21:29:32 +00:00
hunterstich
d66676fd6b
[NavigationBar][NavigationRail] Removed font scaling from NavigationBarView item labels.
...
PiperOrigin-RevId: 426264069
2022-02-03 20:20:31 -08:00
conradchen
b3db1cc028
[Badge] Prevent multiple badges being attached to a menu item at the same time
...
Fixes the logic in NavigationBarMenuView.restoreBadgeDrawables(), which may override the newly created badges with the restored drawables incorrectly. Also adds a safe guard that removes the previously attached badges if any, before attaching a new badge.
PiperOrigin-RevId: 424923078
2022-01-31 18:12:50 -08:00