[英]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.