首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android -导航栏替换我的底部导航栏

Android -导航栏替换我的底部导航栏
EN

Stack Overflow用户
提问于 2017-06-13 00:02:09
回答 0查看 434关注 0票数 0

问题在标题中,我使用了底部导航视图/栏,它在没有虚拟导航栏的智能手机上工作得很好:

On my Samsung Galaxy S6 Edge without Navigation Bar

使用虚拟NavBar时,底部的导航视图将消失:

On my Huawei with virtual Navigation Bar

我尝试删除导航栏并强制应用程序在全屏上运行,然后出现底部的导航视图/栏。

这就是为什么我认为导航栏会被智能手机上的导航栏覆盖。

我希望我的导航底部栏在虚拟导航栏之上!请帮我修复这个bug。

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

代码语言:javascript
复制
<?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>
EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44503887

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档