title: How to change the orientation of a recycler view in xml?
body: <p>I have 2 recycler views. 1 horizontal and 1 vertical. In the design page the elements for the first recycler are horizontal and for the second are vertical, but when I run then app both of them are vertical and I can't figure out what's the problem.</p>
  
  <pre><code>  &lt;androidx.recyclerview.widget.RecyclerView
          android:id="@+id/selected_recycler_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="15dp"
          android:orientation="horizontal"
          app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@id/name_edit_text"
          tools:listItem="@layout/item_participant_selected" /&gt;
  
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id="@+id/recycler_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="120dp"
          android:layout_marginBottom="@dimen/participants_padding_bottom"
          android:clipToPadding="false"
          app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
          app:layout_constraintEnd_toEndOf="@id/selected_recycler_view"
          app:layout_constraintStart_toStartOf="@id/selected_recycler_view"
          app:layout_constraintTop_toBottomOf="@id/selected_recycler_view"
          tools:listItem="@layout/item_participant" /&gt; 
  </code></pre>