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

问题描述:

问题是在标题,我用一个底部导航视图/酒吧,它工作正常,在智能手机没有虚拟导航栏:的Android - 导航栏取代我的底部导航栏

On my Samsung Galaxy S6 Edge without Navigation Bar

并配有虚拟的NavBar,底部导航视图消失:

On my Huawei with virtual Navigation Bar

我试图删除导航栏和强制应用程序去全屏和底部导航视图/酒吧出现。

这就是为什么我认为Navigation Bottom Bar被导航栏从智能手机覆盖的原因。

我希望我的导航底部栏位于虚拟导航栏上方! 请帮我解决这个bug。

编辑: 下面是该活动的布局:

<?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> 
+0

你能分享这个问题的布局文件吗 –

+0

@AmitBhandari我添加了布局的主要职位 –

尝试,如下所示RelativeLayout高度设置为match_parent

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

</RelativeLayout> 
+0

它不会改变任何东西:( –

我解决了!这是一个问题,在我的代码中的东西,阻止了用户界面,不幸的是,对不起:)