The toolbar is on top of the toolbar. How to fix it?
Here is the markup
<android.support.design.widget.CoordinatorLayout 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:id="@+id/coordinator" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="112dp" /> <android.support.design.widget.AppBarLayout android:id="@+id/app_bar_layout" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" > <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical|right" android:id="@+id/imageButtonFrame" > <ImageButton android:layout_width="wrap_content" android:layout_height="match_parent" android:id="@+id/imageButton" android:src="@drawable/sa_edit_schedule" android:background="@drawable/schedule_btn" android:padding="@dimen/sa_margin_edit_img" /> </FrameLayout> <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical|right" android:id="@+id/imageButtonCloseFrame" android:layout_toRightOf="@+id/imageButtonFrame" > <ImageButton android:layout_width="wrap_content" android:layout_height="match_parent" android:id="@+id/imageButtonClose" android:src="@drawable/sa_close_edit_schedule" android:background="@drawable/schedule_btn" android:padding="@dimen/sa_margin_edit_img" /> </FrameLayout> <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical|right" android:id="@+id/imageButtonCreateFrame" > <ImageButton android:layout_width="wrap_content" android:layout_height="match_parent" android:id="@+id/imageButtonCreate" android:src="@drawable/sa_favorite_create" android:background="@drawable/schedule_btn" android:padding="@dimen/sa_margin_edit_img" /> </FrameLayout> <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical|right" android:id="@+id/imageButtonDeleteFrame" android:layout_toRightOf="@+id/imageButtonFrame" > <ImageButton android:layout_width="wrap_content" android:layout_height="match_parent" android:id="@+id/imageButtonDelete" android:src="@drawable/sa_favorite_delete" android:background="@drawable/schedule_btn" android:padding="@dimen/sa_margin_edit_img" /> </FrameLayout> </android.support.v7.widget.Toolbar> <android.support.design.widget.TabLayout android:id="@+id/tab_layout" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:tabIndicatorColor="@android:color/background_light" app:tabSelectedTextColor="@android:color/background_light" app:tabTextColor="@android:color/background_light" /> </android.support.design.widget.AppBarLayout> </android.support.design.widget.CoordinatorLayout> 
android:fitSystemWindows="true"forAppBarLayout- YuriiSPb ♦CoordinatorLayoutbesidesAppBarLayoutandroid:fitSystemWindows="true"- Juriy Spb ♦