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
Material Design Team
285fa9de30
Automated g4 rollback of changelist 422930284
...
PiperOrigin-RevId: 422949121
2022-01-20 10:24:30 -05:00
Material Design Team
c52b95d4d5
Automated g4 rollback of changelist 420096508
...
PiperOrigin-RevId: 422930284
2022-01-19 19:34:23 -05:00
conradchen
bbbeacd64e
[Badge] Refactor Badge state managing logic
...
This CL fixes a couple of badge state related issues. First, it prevents the badges created before restoring instance states from being overwritten by the old instance states. Second, it makes badges reload their default style settings everytime when its being recreated so if the environment has been changed, the default values will reflect the environment change.
This CL also fixes that several attributes were not correctly saved/restored or their default values were not correctly loaded.
Resolves https://github.com/material-components/material-components-android/issues/2032
PiperOrigin-RevId: 420096508
2022-01-06 15:51:50 -05:00
Material Design Team
cfc00aa5a3
Update android core class definitions across material
...
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
Material Design Team
c1f48a74c2
[NavigationBar] getPresenter update
...
PiperOrigin-RevId: 401843016
2021-10-11 10:59:53 -04:00
hunterstich
fd23c6b0ad
[NavigationRail] Added support for unlabeled items to automatically resize their active indicator.
...
PiperOrigin-RevId: 399689605
2021-09-29 11:19:59 -04:00
hunterstich
6e1acd1aea
[Docs][NavigationView] Updated navigation drawer documentation to Material 3.
...
PiperOrigin-RevId: 398721683
2021-09-24 17:55:32 +00:00
dsn5ft
478ca74a00
[M3][NavigationBar] Update active indicator initialization to skip animator if view not attached to window yet
...
PiperOrigin-RevId: 398719690
2021-09-24 17:53:11 +00:00
hunterstich
d0edb45893
[M3][NavigationView] Added Material 3 styles for navigation view.
...
PiperOrigin-RevId: 398719344
2021-09-24 17:51:53 +00:00
hunterstich
b762fbc2dd
[Docs][NavigationRail] Updated documentation to Material 3 and added new styles/attrs to res-public
...
PiperOrigin-RevId: 398481584
2021-09-23 19:38:38 +00:00
hunterstich
e8c1d98b16
[NavigationView] Added support for changing item size, divider insets, label insets, and corner size.
...
PiperOrigin-RevId: 398261933
2021-09-23 19:23:44 +00:00
hunterstich
c6d0f7c785
[M3][NavigationRail] Added new navigation rail styles.
...
PiperOrigin-RevId: 397846116
2021-09-21 08:35:12 -07:00
hunterstich
619c95c2f8
[NavigationBar] Fixed menu visibility changes causing active indicator flashing.
...
PiperOrigin-RevId: 393365926
2021-08-27 15:04:47 -04:00
Ian Lake
501ef8ea2a
[NavigationRailView] Update inset handling for Navigation Rail & Bottom Nav
...
Resolves https://github.com/material-components/material-components-android/pull/2253
GIT_ORIGIN_REV_ID=b6c2270b8855e38231c29cbfd48949afd785258c
PiperOrigin-RevId: 383632982
2021-07-08 16:01:01 +00:00
conradchen
5d092b75a6
[Color] Internal change
...
PiperOrigin-RevId: 372355438
2021-05-07 12:14:33 -04:00
hunterstich
166d9f6471
[NavigationBar] Updated indicator and label to use motion theming.
...
PiperOrigin-RevId: 368684603
2021-04-16 17:54:00 -04:00
hunterstich
7eea2b25bc
[Navigation bar] Add active indicator.
...
PiperOrigin-RevId: 368261456
2021-04-16 12:42:14 -04:00
Material Design Team
a200a5ef17
[NavigationRail] Moves OnNavigationItem listeners to the NavigationBarView class
...
to be easier used by developers and other libraries
An example of where the current implementation fails is in Jetpack Navigation component where we rely on setOnNavigationItemSelectedListener and the similar methods in NavigationBarView (setOnItemSelectedListener) are protected.
PiperOrigin-RevId: 367467206
2021-04-08 20:43:35 -04:00
dniz
fed90a9e57
[Nav Rail / Bottom Nav / Nav Bar] API Fixes
...
Resolves https://github.com/material-components/material-components-android/issues/2131
PiperOrigin-RevId: 365873683
2021-03-31 10:27:45 -04:00
raajkumars
585e0ff0ff
[Navigation Rail] Fixed spacing issue between destination icon and label.
...
PiperOrigin-RevId: 357997380
2021-02-18 14:34:17 -08:00
connieshi
da2d8264d1
[Tabs][BottomNav] Do not show tooltip on long press for L and M devices to avoid freezing devices on repeated long press.
...
PiperOrigin-RevId: 355428951
2021-02-04 20:54:30 -05:00
raajkumars
e13610e589
[Navigation Rail] Added Navigation Rail component to the library.
...
PiperOrigin-RevId: 355235369
2021-02-04 20:49:41 -05: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
Tad Fisher
a6a750b4ae
[NavigationView] Fix obtaining Activity in setupInsetScrimsListener
...
Resolves https://github.com/material-components/material-components-android/pull/1628
Resolves https://github.com/material-components/material-components-android/issues/1627
GIT_ORIGIN_REV_ID=4042d13c8326144184e46795b217b9172b6552ad
PiperOrigin-RevId: 327446397
2020-08-19 17:44:12 -04:00
Gabriele Mariotti
e6f05bca7e
[NavigationView] Support for shapeAppearance and shapeAppearanceOverlay attributes
...
Resolves https://github.com/material-components/material-components-android/pull/1535
GIT_ORIGIN_REV_ID=f676794634c788fb906bc36c0feadb1628e36fb4
PiperOrigin-RevId: 323783155
2020-07-29 10:39:14 -04:00
marianomartin
049ad022a6
Delete components build.gradle files
...
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
Material Design Team
073382034a
Migrate android.support.v4.content.ContextCompat to androidx
...
Android X migration
PiperOrigin-RevId: 315791679
2020-06-11 17:27:51 -07:00
Material Design Team
76ffe35fef
Cleanup
...
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
isabellekim
1f9de68025
[All] Add support for materialThemeOverlay
...
Resolves https://github.com/material-components/material-components-android/pull/948
GIT_ORIGIN_REV_ID=5a8bb35a56c1b813df47d964de8482a26e0da66d
PiperOrigin-RevId: 293839172
2020-02-10 09:55:19 -05:00
ldjesper
394bac6be0
Add MaterialDatePicker style and theme attributes to public.xml
...
Resolves https://github.com/material-components/material-components-android/issues/664
PiperOrigin-RevId: 273854001
2019-10-10 15:53:13 -04:00
marianomartin
f71d80a960
[NavigationView] Logic error when drawing nav bar scrim
...
Resolves https://github.com/material-components/material-components-android/issues/629
PiperOrigin-RevId: 273365055
2019-10-08 10:34:29 -04:00
Material Design Team
05367d4358
Fix fragment leak in Material NavigationView
...
Need to unregister the ViewTreeObserver, which was previously registered on the top-most View in the entire hierarchy.
PiperOrigin-RevId: 268532017
2019-09-12 14:21:38 -04:00
marianomartin
215a839598
Internal cleanup
...
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
cketcham
7bb525ff59
Update usages of ShapeAppearanceModel to use Builder pattern
...
PiperOrigin-RevId: 266144471
2019-08-29 15:39:51 -04:00
marianomartin
0d4515cb46
Internal cleanup
...
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -04:00
cketcham
86d4328e24
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 265447585
2019-08-29 11:24:58 -04:00
cketcham
a1a763dde9
Fixing NavigationView scrims
...
NavigationView tries to determine if it is behind the status bar by checking if it's at the top of the screen. If it is and there are insets, it will draw a scrim. It also tries to determine if it is under the system nav. If it is and the system nav isn't fully transparent, it will also draw a scrim.
PiperOrigin-RevId: 264167166
2019-08-20 11:13:04 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
marianomartin
19aeb9b7a2
Delegate overscrollmode in navigation view to inflated MenuView
...
PiperOrigin-RevId: 256988688
2019-07-09 12:54:18 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00