Android-导航栏取代我的底部导航栏

Android-导航栏取代我的底部导航栏,android,bottomnavigationview,android-navigation-bar,Android,Bottomnavigationview,Android Navigation Bar,问题在于标题中,我使用了底部导航视图/导航栏,它在没有虚拟导航栏的智能手机上运行良好: 使用虚拟导航栏,底部导航视图将消失: 我试图删除导航栏并强制应用程序全屏运行,这时出现了底部导航视图/导航栏 这就是为什么我认为导航底部栏被智能手机的导航栏覆盖了 我希望我的导航底部栏位于虚拟导航栏上方! 请帮我修复这个错误 编辑: 以下是此活动的布局: <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.D

问题在于标题中,我使用了底部导航视图/导航栏,它在没有虚拟导航栏的智能手机上运行良好:

使用虚拟导航栏,底部导航视图将消失:

我试图删除导航栏并强制应用程序全屏运行,这时出现了底部导航视图/导航栏

这就是为什么我认为导航底部栏被智能手机的导航栏覆盖了

我希望我的导航底部栏位于虚拟导航栏上方! 请帮我修复这个错误

编辑: 以下是此活动的布局:

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/drawerlayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/ic_fond_opacite"
    android:fitsSystemWindows="false">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">
        <FrameLayout
            android:id="@+id/frame"
            android:layout_above="@+id/bottomNavigationAvis"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

        <com.luseen.luseenbottomnavigation.BottomNavigation.BottomNavigationView
            android:id="@+id/bottomNavigationAvis"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            app:bnv_active_color="@color/vraiment_pro_vert"
            app:itemBackground="@color/vraiment_pro_fond_gris"
            app:itemTextColor="@color/vraiment_pro_fond_gris"
            app:bnv_active_text_size="@dimen/bottom_navigation_text_size_active"
            app:bnv_colored_background="true"
            app:bnv_inactive_text_size="@dimen/bottom_navigation_text_size_inactive"
            app:bnv_with_text="true" />
    </RelativeLayout>



</android.support.v4.widget.DrawerLayout>

尝试将
相对长度设置为
匹配父项
,如下所示

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

</RelativeLayout>


我解决了!我的代码中有一个问题阻塞了UI,很遗憾,很抱歉:)

你能分享一下你的布局文件吗issue@AmitBhandari我将布局添加到主帖子中,但没有改变任何内容:(