Navigation bar clipping into action bar
See original GitHub issueApp Version: 5.19.0
Device: Pixel XL, Android 9.0
The problem: When scrolling up and down such that the navigation bar is hidden and then revealed, part of the navigation bar bleeds into the action bar. See gifs below (it’s a little hard to see, so Gabe will show you the first one and the second one is a two-frame animation showing the part that is bleeding into the action bar flashing red so you can more easily see it).
Steps to reproduce: Scroll up and down until the navigation bar bleeds into the action bar. Once the navigation bar clips into the action bar, it will stay there until you interact with the search bar or a new tab is opened etc. On my device this is easily reproducible, but I have not been able to reproduce this on an emulator yet (granted I could have tried harder). Update: I have been able to reproduce this a few times on an emulator (Pixel XL, Android Q), but from my experience it takes a solid minute or two of scrolling for it to happen.
Possible fix: This no longer happens on my device after removing android:fitsSystemWindows="true"
from the AppBarLayout
in include_omnibar_toolbar.xml
and moving it to the CoordinatorLayout
in fragment_browser_tab.xml
.
If this is something you would like to fix, I would be happy to submit a PR with this fix or review/test a PR that fixes this issue. If this isn’t on the list of importance and you want to put this in your back pocket and save it for a rainy day, that’s cool too! As always, if you need any more information on this or are having trouble reproducing this, feel free to ping me and I will do whatever I can to help.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
For the record, I love the gif! 😍
Thanks for the bug report and for entertaining us @JeffAment 😆😆😆 Regarding your question about submitting a PR, that would be great! I should have time to review it later this week.