Android 自动隐藏不适用于BottomNavigationView
我最近在一个片段中集成了BottomNavigationView。根据指南,它应该自动隐藏在卷轴上。但事实并非如此 我也不能滚动主布局。因此,如果没有自动隐藏功能,主布局的底部既不可见也不可触摸 下面是我的页脚布局:Android 自动隐藏不适用于BottomNavigationView,android,scrollview,bottomnavigationview,Android,Scrollview,Bottomnavigationview,我最近在一个片段中集成了BottomNavigationView。根据指南,它应该自动隐藏在卷轴上。但事实并非如此 我也不能滚动主布局。因此,如果没有自动隐藏功能,主布局的底部既不可见也不可触摸 下面是我的页脚布局: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.app.ui.footer.FooterFragment">
<android.support.design.widget.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:itemBackground="@color/grey"
app:itemTextColor="@color/black" />
</FrameLayout>
是否需要设置标志以启用自动隐藏功能