<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.shunzhi.parent.ui.MainActivity"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginBottom="?android:actionBarSize" android:id="@+id/frame" ></FrameLayout> <android.support.design.widget.BottomNavigationView android:layout_width="match_parent" android:layout_height="?android:actionBarSize" android:background="@color/window_background_light" android:id="@+id/bottom_navigationView" android:layout_gravity="bottom" app:menu="@menu/bottom_navigationview" ></android.support.design.widget.BottomNavigationView> </FrameLayout>