None of the above helped (or at least not at all) using appcompat v7 23 and the Layout coordinator, which is most likely the culprit. If you go this route, you probably have the main kind of work that looks like
<?xml version="1.0" encoding="utf-8"?> <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/main_content" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.farmdog.farmdog.MainActivity"> <android.support.v4.view.ViewPager android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_anchor="@+id/appbar" app:layout_anchorGravity="top" app:layout_behavior="@string/appbar_scrolling_view_behavior"/> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content"> ...
Pay attention to the two string binding lines above - they did it for me.
kellogs Jan 11 '16 at 2:33 p.m. 2016-01-11 14:33
source share