[英]Android - Navigation Bar replace my Bottom Navigation Bar
问题出在标题中,我使用了底部导航视图/栏,它在没有虚拟导航栏的智能手机上也能正常工作:
使用虚拟NavBar,底部导航视图消失:
我试图删除导航栏并强制应用程序进入全屏模式,然后出现了底部导航视图/栏。
这就是为什么我认为智能手机中的导航栏会覆盖导航底栏。
我希望导航底部栏位于虚拟导航栏上方! 请帮助我修复此错误。
编辑:这是此活动的布局:
<?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
高度设置为match_parent
。
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
</RelativeLayout>
我解决了! 不幸的是,我的代码中的某个问题阻止了UI,对不起:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.