title: ConstraintLayout Recyclerview doesn't work with BottomSheetDialogFragment?
body: <p>I have a layout using a Recyclerview in a ConstaintLayout as follows</p>
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout  xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      tools:context=&quot;.ui.user_list.UserListSelectionBottomSheetDialogFragment&quot;&gt;
  
  &lt;!--&lt;com.google.android.material.appbar.MaterialToolbar
      android:id=&quot;@+id/user_list_selection_toolbar&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      app:layout_constraintTop_toTopOf=&quot;parent&quot;
      style=&quot;@style/Widget.MaterialComponents.Toolbar.Surface&quot; /&gt;
  
  &lt;com.google.android.material.divider.MaterialDivider
      android:id=&quot;@+id/user_list_selection_toolbar_divider&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      app:layout_constraintTop_toBottomOf=&quot;@id/user_list_selection_toolbar&quot; /&gt; --&gt;
  
  &lt;androidx.recyclerview.widget.RecyclerView
      android:id=&quot;@+id/user_list_selection_list&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      app:layout_constraintTop_toTopOf=&quot;parent&quot;
      app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
      tools:listitem=&quot;@layout/item_user_list&quot; /&gt;
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>However, the recyclerview seems to be showing up horizontally instead of vertically and is not rendering the items (I changed the item background color to green)</p>
  <p><a href="https://i.stack.imgur.com/P6Q60l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P6Q60l.png" alt="enter image description here" /></a></p>
  <p>But if I change the parent layout to a LinearLayout, it shows up fine. I see this is an existing  issue such as <a href="https://stackoverflow.com/questions/44942440/why-is-my-dialogfragment-not-showing-the-custom-layout">here</a> but is there an explanation as to why? Or is it just something to accept?</p>