[BottomNavigationView] Adding extra padding
See original GitHub issueDescription: Whenever full-screen mode enabled by code icons are shrinking and after debugging I got to know that it’s adding extra padding at the bottom.
Expected behavior:
Source code:
val flags = (View.SYSTEM_UI_FLAG_LAYOUT_STABLE
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_FULLSCREEN
or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY)
if (PreferenceUtil.getInstance().fullScreenMode) {
window.decorView.systemUiVisibility = flags
}
Android API version: Android 28
Material Library version: 1.1.0-alpha09
Device: Xioami Pocco f1
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:22 (12 by maintainers)
Top Results From Across the Web
Android BottomNavigationView has strange bottom padding
I had a similar problem, extra bottomPadding was getting added to BottomNavigationView after rotating from Fullscreen Landscape to Portrait ...
Read more >How to remove extra space between the Navigation Bar and ...
There are two ways to resolve the issue. In both the cases we restrict the scroll view to leave extra margin for the...
Read more >BottomNavigationView in Android - GeeksforGeeks
BottomNavigationView makes it easy for users to explore and switch between top-level views with a single tap. There should be a minimum of...
Read more >Some tips to a better experience working with Android's ...
BottomNavigationView creates bottom navigation bars, making it easy to explore and switch between top-level content views with a single tap.
Read more >BottomNavigationView - Android Developers
Represents a standard bottom navigation bar for application. It is an implementation of material design bottom navigation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
@h4h13 subclass BottomNavigationView and within the init block add the following line
setOnApplyWindowInsetsListener(null)
(You may need tosetPadding(0)
too)@paolovalerdi @h4h13 please do not subclass bottomNavigationView just to do that. Have you read this comment? It may apply to your situation as well.