title: Android - the item inside RecyclerView can't be clicked after scroll
body: <p>I just upgraded to API 26 and support library 26.0.2. But I found that my <code>RecyclerView</code> items is not clickable right after the scrolling. If you wait for a second, it will work. But if you click the item immediately, it won't. Even if the <code>RecyclerView</code> is not scrolling at all(e.g. has scrolled to the top).</p>
  
  <p>When I downgraded to support library 25.4.0 everything goes fine again.
  The key point is that my <code>RecyclerView</code> is in a <code>CoordinatorLayout</code> and has a <code>SCROLL_FLAG_SCROLL</code> flag on my <code>Toolbar</code> of the <code>AppBarLayout</code>. If I don't use this flag, then this problem will disappear. So I think it's a hidden behavior change of support library 26.</p>
  
  <p>I've tried to add <code>focusable="false"</code> to the <code>CoordinatorLayout</code> but still had no luck.</p>
  
  <p>Is there any way to disable this behavior? Because it's really annoying to click twice to trigger the click event.</p>
  
  <pre><code> &lt;android.support.design.widget.CoordinatorLayout
          android:id="@+id/coordinateLayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
              android:id="@+id/fragmentAppBar"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:elevation="0dp"
              android:background="@null"&gt;
          &lt;include
                  android:id="@+id/dynamicActionBarHolder"
                  layout="@layout/dynamic_action_bar"/&gt;
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
      &lt;android.support.v4.widget.SwipeRefreshLayout
              android:id="@+id/pullToRefreshMailRecycler"
              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/mailRecyclerView"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"/&gt;
  
      &lt;/android.support.v4.widget.SwipeRefreshLayout&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>EDIT</p>
  
  <p>I think the problem is the <code>scrollState</code> of the <code>RecyclerView</code>. When it's stopped scrolling, it's not changed to <code>SCROLL_STATE_IDLE</code> immediately. Looking into the source code of <code>RecyclerView</code>, I found there's a <code>ViewFlinger</code> controlling the scroll state. When I fling down to scroll to the top, it's not calling <code>setScrollState(SCROLL_STATE_IDLE)</code> immediately, instead, it wait for a while to trigger this method. The more fast I fling, the more time I need to wait. It just like the RecyclerView is still scrolling in the background. Because the <code>scroller.isFinished()</code> doesn't return true right after the <code>RecyclerView</code> stop scrolling when it touched the top. Maybe it's a bug of the <code>RecyclerView</code> when it's in a <code>CoordinatorLayout</code>.</p>