title: Scrolling problems inside AppBarLayout
body: <p>I have <code>CoordinatorLayout</code>:</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="@color/background"
                                                   android:clickable="true"
                                                   android:focusableInTouchMode="true"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/bottom_recycle_view"
          android:layout_width="fill_parent"
          android:layout_height="match_parent"
          android:layout_margin="10dp"
          android:background="@drawable/border_gray_solid_background_nop"
          app:layout_behavior="@string/appbar_scrolling_view_behavior"/&gt;
  
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/background"&gt;
  
          &lt;com.app.views.textviews.OpSearchView
              android:id="@+id/search_top"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginLeft="@dimen/default_margin"
              android:layout_marginRight="@dimen/default_margin"
              android:layout_marginTop="@dimen/_20sdp"
              app:hint="@string/filter_categories"
              app:layout_scrollFlags="scroll"/&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:paddingBottom="@dimen/_10sdp"
              app:layout_scrollFlags="scroll"&gt;
  
  
              &lt;TextView
                  android:id="@+id/top_heading"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="@dimen/default_margin"
                  android:layout_marginLeft="@dimen/default_margin"
                  android:layout_marginRight="@dimen/default_margin"
                  android:layout_marginTop="@dimen/home_screen_sector_spacing"
                  android:gravity="left"
                  android:textColor="@color/heading_gray"
                  android:textSize="@dimen/_14sdp"
                  android:textStyle="bold"/&gt;
  
  
              &lt;com.app.views.recycleview.HorizontalRecycleView
                  android:id="@+id/top_recycle_view"
                  android:layout_width="match_parent"
                  android:layout_height="@dimen/categories_row_height"
                  android:clipToPadding="false"
                  android:paddingLeft="@dimen/default_margin"/&gt;
  
  
              &lt;TextView
                  android:id="@+id/bottom_heading"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="@dimen/default_margin"
                  android:layout_marginRight="@dimen/default_margin"
                  android:layout_marginTop="@dimen/home_screen_sector_spacing"
                  android:gravity="left"
                  android:textColor="@color/heading_gray"
                  android:textSize="@dimen/_14sdp"
                  android:textStyle="bold"/&gt;
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>I would like to make <code>OpSearchView</code> sticky to the top of the layout. </p>
  
  <p>I try to remove <code>app:layout_scrollFlags="scroll"</code> from <code>OpSearchView</code> but all childs from <code>AppBarLayout</code> became sticky.</p>
  
  <p>If I move <code>OpSearchView</code> from the <code>AppBarLayout</code> under <code>RecyclerView</code>, the <code>RecyclerView</code>(with layout_behavior) became invisible.</p>
  
  <p>How to make <code>OpSearchView</code> without scrolling behavior?</p>
  
  <p><a href="https://i.stack.imgur.com/Uqn1a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uqn1a.png" alt="http://prntscr.com/ad1jql"></a></p>