title: make RecyclerView's height to "wrap_content" in Constraint layout
body: <p>i'm trying to set the height of recycler view on wrap_content and make it respect that,but it will exceed the other widget on layout.
  what can i do now?</p>
  
  <pre><code>&lt;android.support.constraint.ConstraintLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/white"&gt;
  
  
  
      &lt;TextView
          android:id="@+id/tvPastRounds"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginLeft="16dp"
          android:layout_marginTop="0dp"
          android:text="Past Rounds"
          android:textColor="@color/text_color_black"
          android:textSize="16sp"
          app:layout_constraintLeft_toLeftOf="parent"/&gt;
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recycler_view"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_marginBottom="24dp"
          android:layout_marginEnd="8dp"
          android:layout_marginRight="8dp"
          android:layout_marginTop="16dp"
          android:clipChildren="true"
          android:maxHeight="150dp"
  
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintHorizontal_bias="0.0"
          app:layout_constraintLeft_toLeftOf="@+id/tvPastRounds"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/tvPastRounds" app:layout_constraintVertical_bias="0.0"/&gt;
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>