title: AppBarLayout with fragments
body: <p>So, situation is this:</p>
  
  <p>I need to implement AppBar scroll behaviour in my main activity, but, I already have CoordinatorLayout and AppBarLayout in my fragment with the same scroll behaviour.</p>
  
  <p>Here is the xml from both of the layouts:</p>
  
  <p>activity_main:</p>
  
  <pre><code>&lt;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="#EBEDEC"&gt;
  
  &lt;android.support.v7.widget.Toolbar
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:background="?attr/colorPrimary"
      app:popupTheme="@style/ThemeOverlay.AppCompat.Light"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;ImageView
              android:id="@+id/toolbar_open_nav"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_alignParentStart="true"
              android:layout_centerVertical="true"
              android:src="@drawable/filter_icon" /&gt;
  
          &lt;RelativeLayout
              android:id="@+id/main_activity_images_relative"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;ImageView
                  android:id="@+id/toolbar_fencity_image"
                  android:layout_width="200dp"
                  android:layout_height="match_parent"
                  android:layout_centerInParent="true"
                  android:layout_margin="@dimen/layout_padding"
                  android:src="@drawable/toolbarimg"
                  android:visibility="gone" /&gt;
  
  
          &lt;/RelativeLayout&gt;
  
  
      &lt;/RelativeLayout&gt;
  
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;FrameLayout
              android:id="@+id/main_content"
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="1"
              android:background="@android:color/transparent" /&gt;
  
          &lt;com.bitage.carlo.fencity.ui.view.BottomMenuView
              android:id="@+id/bottom_menu"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize" /&gt;
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>and a fragment xml:</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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:layout_marginTop="?attr/actionBarSize"
      android:orientation="vertical"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:id="@+id/novita_app_bar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;RelativeLayout
              android:id="@+id/novita_search_layout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@color/background"
              app:layout_scrollFlags="scroll|enterAlways|snap"&gt;
  
              &lt;EditText
                  android:id="@+id/search_edit"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_margin="@dimen/layout_padding"
                  android:background="@null"
                  android:hint="@string/search"
                  android:imeOptions="actionDone"
                  android:paddingEnd="@dimen/layout_padding"
                  android:paddingLeft="@dimen/padding_start"
                  android:paddingRight="@dimen/layout_padding"
                  android:paddingStart="@dimen/padding_start"
                  android:singleLine="true" /&gt;
  
              &lt;ImageView
                  android:id="@+id/search_image"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_centerVertical="true"
                  android:layout_marginLeft="@dimen/layout_padding"
                  android:layout_marginStart="@dimen/layout_padding"
                  android:src="@drawable/ic_search" /&gt;
  
          &lt;/RelativeLayout&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
  
          &lt;android.support.v7.widget.RecyclerView
              android:id="@+id/places_recycler_view"
              android:layout_width="match_parent"
              android:layout_height="match_parent" /&gt;
  
          &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:background="@android:color/transparent"
              android:src="@drawable/nav_shadow" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Now, I need this to stay the same if possible, just somehow to add the scroll behavior <code>app:layout_scrollFlags="scroll|enterAlways|snap"</code> on toolbar only in this fragment, while search from the fragment still has the same behaviour.</p>
  
  <p>How can I achieve this?</p>