Я реализовал нижний вид навигации с помощью android webView при прокрутке сайта вниз, например bing.com, нижний вид навигации скрывается отлично, но при прокрутке вверх он не отображается.
Как решить проблема?
Код, который я реализовал
<androidx.coordinatorlayout.widget.CoordinatorLayout>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/refresh_layout"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
<FrameLayout
android:id="@+id/mainFrame"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</FrameLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@color/colorPrimaryDark"
app:menu="@menu/bottom_navigation"
app:labelVisibilityMode="unlabeled"
android:id="@+id/btm"
app:itemRippleColor="#f2f2f2"
app:itemIconTint="#f2f2f2"
app:layout_insetEdge="bottom"
app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior"
android:backgroundTint="@color/colorPrimaryDark" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>