Johan Nilssons Lifestream

Answer by Johan Nilsson for BottomNavigationView not showing in my activity

The reason it doesn't work is because menu is in the wrong namespace (design). Use the app namespace instead.

<android.support.design.widget.CoordinatorLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/colorWhite">

    <android.support.design.widget.BottomNavigationView
        android:id="@+id/navigation"
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:layout_gravity="bottom"
        app:menu="@menu/menu_main" />
</android.support.design.widget.CoordinatorLayout>

via Stack Overflow

blog comments powered by Disqus
Get the source for phplifestream at Github