[BottomNavigationView] shouldn't calculate bottom system insets when keyboard popup in adjustResize
See original GitHub issueIn 1.1.0-alpha09:
Update BottomNavigation to respect bottom system insets (https://github.com/material-components/material-components-android/commit/276bec8385ec877548fc84994c0a016de2428567)
I found that in adjustResize
mode, BottomNavigationView will be pushed up aligned with keyboard popped up, and insets.getSystemWindowInsetBottom()
will be keyboard hight, causing BottomNavigationView
increase padding bottom to double keyboard hight from screen bottom.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (6 by maintainers)
Top Results From Across the Web
How to hide the BottomNavigationView below keyboard with ...
The idea is that when keyboard is shown, system insets are changed with pretty big .bottom value. Share.
Read more >BottomNavigation behavior with an on-screen keyboard on ...
Implementing UX-flows with bottom navigation and on-screen keyboards on Android should be easy. But like most of you already know, it isn't.
Read more >How To Hide The Bottomnavigationview Below ... - ADocLib
shouldn't calculate bottom system insets when keyboard popup in adjustResize. In 1.1.0alpha09: Update BottomNavigation to respect bottom system insets.
Read more >android jetpack data binding - Tumblr
The expression parser automatically tries to find the Java Bean accessor name (getXxx() or isXxx()) for your property. The same expression will work...
Read more >Layout suppressed after keyboard shown with ... - Issue Tracker
When BottomNavigationView is used with ConstraintLayout 2.0.0-beta02, there is some weird behavior after showing the keyboard with adjustResize input mode.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just checked the sample from @b95505017 above. The reason this is happening is because of the following layout (my comments inline).
So how do you fix it? Two options:
fitsSystemWindows="true"
fitsSystemWindows="true"
AND set anOnApplyWindowInsetsListener
on it to ignore the inset (so that only the BottomNavigation handles it). Slide 143 from this talk goes through a similar example.@wcshi Here is the sample of
adjustResize
My workaround is extend BottomNavigationView and remove insets listener: