Trying to prevent hidden bottom nav bar (very rare)

This commit is contained in:
Sylvain Berfini 2025-01-22 10:12:34 +01:00
parent e1bcae703c
commit febc6a85d3
6 changed files with 6 additions and 5 deletions

View file

@ -14,7 +14,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/bottom_nav_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/portrait_nav_bar_height"
android:elevation="16dp"
android:background="?attr/color_background_contrast_in_dark_mode">

View file

@ -104,7 +104,7 @@
<include
android:id="@+id/bottom_nav_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/portrait_nav_bar_height"
layout="@layout/bottom_nav_bar"
bind:viewModel="@{viewModel}"
app:layout_constraintBottom_toBottomOf="parent" />

View file

@ -152,7 +152,7 @@
<include
android:id="@+id/bottom_nav_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/portrait_nav_bar_height"
layout="@layout/bottom_nav_bar"
bind:viewModel="@{viewModel}"
app:layout_constraintBottom_toBottomOf="parent" />

View file

@ -114,7 +114,7 @@
<include
android:id="@+id/bottom_nav_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/portrait_nav_bar_height"
layout="@layout/bottom_nav_bar"
bind:viewModel="@{viewModel}"
app:layout_constraintBottom_toBottomOf="parent" />

View file

@ -79,7 +79,7 @@
<include
android:id="@+id/bottom_nav_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="@dimen/portrait_nav_bar_height"
layout="@layout/bottom_nav_bar"
bind:viewModel="@{viewModel}"
app:layout_constraintBottom_toBottomOf="parent" />

View file

@ -5,6 +5,7 @@
<dimen name="screen_bottom_margin">10dp</dimen>
<dimen name="portrait_nav_bar_height">85dp</dimen>
<dimen name="landscape_nav_bar_width">75dp</dimen>
<dimen name="sliding_pane_left_fragment_width">350dp</dimen>
<dimen name="sliding_pane_right_fragment_width">300dp</dimen>