[Bottom Navigation View] Height increase after destroying the foreground app and reopening
See original GitHub issueDescription: Full description of issue here I am working on a sample app that uses Material 3 bottom navigation view, everything looks good on the first launch but when you destroy the app and reopen it again, it increases the height of the bottom nav view when height is set to wrap parent
Expected behavior: Screenshots and/or description of expected behavior On First Launch -
After -
Source code: The code snippet which is causing this issue. Please consider attaching a minimal sample app that reproduces the issue.
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:menu="@menu/bottom_navigation_menu"/>
Android API version: Android API version here Target - 31 Compile - 31
Material Library version: Material Android Library version you are using here (e.g., 1.1.0-alpha07) 1.6.0-alpha01
Device: Device on which the bug was encountered here
- Emulator running on API 31
- Pixel 4XL running on Android 12
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
this works for me
Hi @abhishekds94,
Thanks for filing an issue! Would you be able to attach your sample? I tried re-creating your scenario but wasn’t able to reproduce the issue you’ve described.