title: RecyclerView blocks swipe in MotionLayout
body: <p>I have problem with swipe in my views in front (add folder kind of dialog) of recycler view. When I perform the swipe gesture it's just scrolling in RecyclerView behind it.</p>
  <p>However when I tried to <strong>set visibility</strong> of RecyclerView to <strong>GONE</strong>, it was working well so I suspect there is something wrong with focus or Recycler it self, although I clear focus when the scenes change.</p>
  <p>This is <a href="https://youtu.be/2VRG27ujjeY" rel="nofollow noreferrer">video without RecyclerView</a></p>
  <p>And this is <a href="https://youtu.be/7WHaIFwV1Qw" rel="nofollow noreferrer">video with the RecyclerView</a></p>
  <p>Methods where I show settings and folder dialog:</p>
  <pre><code>private void showSettings(){
          if (!settingBox.hasFocus()){
              settingBox.requestFocus();
          }
  
          foldersGridRecyclerView.clearFocus();
  
  
          root.transitionToState(R.id.settingsShowed);
      }
  
      private void showAddFolderBox(){
          if (!addFolderBox.hasFocus()){
              addFolderBox.requestFocus();
          }
  
          foldersGridRecyclerView.clearFocus();
  
          root.transitionToState(R.id.addFolderBoxShowed);
      }
  </code></pre>
  <p>Here is my grapth file:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;MotionScene xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;&gt;
  
      &lt;ConstraintSet android:id=&quot;@+id/addFolderBoxHidden&quot;&gt;
          &lt;Constraint
              android:id=&quot;@+id/addFolderBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;330dp&quot;
              android:layout_marginBottom=&quot;1dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/add_folder_background&quot;
              android:paddingHorizontal=&quot;17dp&quot;
              app:layout_constraintBottom_toTopOf=&quot;parent&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHeight_default=&quot;percent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;/&gt;
  
          &lt;Constraint
              android:id=&quot;@+id/settingsBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;600dp&quot;
              android:layout_marginTop=&quot;1dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/settings_bar_background&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;parent&quot;
              android:translationZ=&quot;6dp&quot;/&gt;
  
      &lt;/ConstraintSet&gt;
  
      &lt;ConstraintSet android:id=&quot;@+id/addFolderBoxShowed&quot;&gt;
          &lt;Constraint
              android:id=&quot;@+id/addFolderBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;330dp&quot;
              android:layout_marginBottom=&quot;-330dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/add_folder_background&quot;
              android:paddingHorizontal=&quot;17dp&quot;
              app:layout_constraintBottom_toTopOf=&quot;parent&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHeight_default=&quot;percent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;/&gt;
  
          &lt;Constraint
              android:id=&quot;@+id/settingsBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;600dp&quot;
              android:layout_marginTop=&quot;1dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/settings_bar_background&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;parent&quot;
              android:translationZ=&quot;6dp&quot;/&gt;
      &lt;/ConstraintSet&gt;
  
      &lt;ConstraintSet android:id=&quot;@+id/settingsHidden&quot;&gt;
          &lt;Constraint
              android:id=&quot;@+id/addFolderBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;330dp&quot;
              android:layout_marginBottom=&quot;1dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/add_folder_background&quot;
              android:paddingHorizontal=&quot;17dp&quot;
              app:layout_constraintBottom_toTopOf=&quot;parent&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHeight_default=&quot;percent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;/&gt;
  
          &lt;Constraint
              android:id=&quot;@+id/settingsBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;600dp&quot;
              android:layout_marginTop=&quot;1dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/settings_bar_background&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;parent&quot;
              android:translationZ=&quot;6dp&quot;/&gt;
      &lt;/ConstraintSet&gt;
  
      &lt;ConstraintSet android:id=&quot;@+id/settingsShowed&quot;&gt;
          &lt;Constraint
              android:id=&quot;@+id/addFolderBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;330dp&quot;
              android:layout_marginBottom=&quot;1dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/add_folder_background&quot;
              android:paddingHorizontal=&quot;17dp&quot;
              app:layout_constraintBottom_toTopOf=&quot;parent&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHeight_default=&quot;percent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;/&gt;
          &lt;Constraint
              android:id=&quot;@+id/settingsBox&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;600dp&quot;
              android:layout_marginTop=&quot;-600dp&quot;
              android:focusable=&quot;true&quot;
              android:focusableInTouchMode=&quot;true&quot;
              android:background=&quot;@drawable/settings_bar_background&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintHorizontal_bias=&quot;0.5&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;parent&quot;
              android:translationZ=&quot;6dp&quot;/&gt;
      &lt;/ConstraintSet&gt;
  
      &lt;Transition
          app:constraintSetEnd=&quot;@+id/addFolderBoxHidden&quot;
          app:constraintSetStart=&quot;@+id/addFolderBoxShowed&quot; &gt;
          &lt;OnSwipe
              app:touchAnchorId=&quot;@id/addFolderBox&quot;
              app:touchRegionId=&quot;@id/addFolderBox&quot;
              app:dragDirection=&quot;dragUp&quot;
              app:touchAnchorSide=&quot;bottom&quot; /&gt;
  
      &lt;/Transition&gt;
  
      &lt;Transition
          app:constraintSetEnd=&quot;@+id/settingsHidden&quot;
          app:constraintSetStart=&quot;@+id/settingsShowed&quot; &gt;
          &lt;OnSwipe
              app:touchAnchorId=&quot;@id/settingsBox&quot;
              app:touchRegionId=&quot;@id/settingsBox&quot;
              app:dragDirection=&quot;dragDown&quot;
              app:touchAnchorSide=&quot;top&quot; /&gt;
  
      &lt;/Transition&gt;
  
      &lt;Transition
          app:constraintSetStart=&quot;@+id/addFolderBoxShowed&quot;
          app:constraintSetEnd=&quot;@+id/addFolderBoxHidden&quot;&gt;
  
      &lt;/Transition&gt;
  
      &lt;Transition
          app:constraintSetStart=&quot;@+id/settingsHidden&quot;
          app:constraintSetEnd=&quot;@+id/settingsShowed&quot;&gt;
  
      &lt;/Transition&gt;
  
  &lt;/MotionScene&gt;
  </code></pre>
  <p>And finally the activity layout:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;androidx.constraintlayout.motion.widget.MotionLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/root&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;?attr/backgroundColor&quot;
      tools:context=&quot;.activities.MainActivity&quot;
      app:layoutDescription=&quot;@xml/activity_main_scene&quot;&gt;
  
  &lt;androidx.recyclerview.widget.RecyclerView
          android:id=&quot;@+id/group_grid_layout&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;0dp&quot;
          android:numColumns=&quot;2&quot;
          android:visibility=&quot;visible&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@+id/constraintLayout&quot;&gt;
  
      &lt;/androidx.recyclerview.widget.RecyclerView&gt;
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:id=&quot;@+id/addFolderBox&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;330dp&quot;
          android:focusable=&quot;true&quot;
          android:focusableInTouchMode=&quot;true&quot;
          android:layout_marginBottom=&quot;1dp&quot;
          android:background=&quot;@drawable/add_folder_background&quot;
          android:paddingHorizontal=&quot;17dp&quot;
          app:layout_constraintBottom_toTopOf=&quot;parent&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHeight_default=&quot;percent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.5&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;&gt;&lt;.../&gt;
  
  &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:id=&quot;@+id/settingsBox&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;600dp&quot;
          android:layout_marginTop=&quot;1dp&quot;
          android:focusable=&quot;true&quot;
          android:focusableInTouchMode=&quot;true&quot;
          android:background=&quot;@drawable/settings_bar_background&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintHorizontal_bias=&quot;0.5&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;parent&quot;
          android:translationZ=&quot;6dp&quot;&gt;&lt;/...&gt;
  </code></pre>