roughike / BottomBar

(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern.
Apache License 2.0
8.41k stars 1.5k forks source link

BottomBar behind navBar #434

Open NekoNX opened 8 years ago

NekoNX commented 8 years ago

Updated 29/08/2016

Hi, thanks for your work roughike your update is awesome. I just have a little issue, the bottomBar stay hidden behind the navBar even if i'm not using the "underNavBar" behavior, I would like to put it at the top of the navBar. I tried to use fitsSystemWindows with no success.

Update : The BottomBar is inside a Fragment

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
>
        <com.roughike.bottombar.BottomBar
            android:id="@+id/bottomNavigation"
            android:layout_width="match_parent"
            android:layout_height="60dp"
            android:layout_alignParentBottom="true"
            app:bb_tabXmlResource="@xml/bottom_navigation_tabs"
            app:bb_activeTabColor="@color/colorAccent"
        >
    </com.roughike.bottombar.BottomBar>
</LinearLayout>

bottombarbehindnavbar

roughike commented 8 years ago

What does your layout containing the BottomBar look like?

NekoNX commented 8 years ago

Thanks for your answer, i updated my post with the bottomBar layout file

cargo8 commented 8 years ago

@NekoNX you are supposed to use the underNavBar behavior — that way it will add additional space at the bottom of the layout to accomodate for the system nav bar.