title: Why is the text in the text view cut off in the recycler view?
body: <p>I'm trying to make an items with just an image and a title below it in a recycler view. For some reason my text view's that hold the title are getting cut off on the bottom. </p>
  
  <p>See below:</p>
  
  <p><a href="https://i.stack.imgur.com/3iCRX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3iCRX.png" alt="enter image description here"></a></p>
  
  <p>I've tried setting the text view height to <code>wrap_content</code> but that will result in my images being pushed up and not consistently the same size across all items. Also I find it odd that the text view size &amp; positioning doesn't even match the preview layout in android studios.</p>
  
  <p>Any suggestions?</p>
  
  <p>My view holder layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_margin="4dp"
          android:background="@drawable/thumbnail_frame"
          android:paddingLeft="16dp"
          android:paddingTop="12dp"
          android:paddingRight="16dp"
          android:paddingBottom="12dp"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:orientation="vertical"
              android:weightSum="100"
              app:layout_constraintBottom_toBottomOf="parent"
              app:layout_constraintDimensionRatio="5:4"
              app:layout_constraintEnd_toEndOf="parent"
              app:layout_constraintStart_toStartOf="parent"
              app:layout_constraintTop_toTopOf="parent"&gt;
  
              &lt;ImageView
                  android:id="@+id/thumbnail_item"
                  android:layout_width="match_parent"
                  android:layout_height="0dp"
                  android:layout_weight="80"
                  android:background="@color/dark_red"
                  android:scaleType="centerCrop" /&gt;
  
              &lt;TextView
                  android:id="@+id/thumbnail_title"
                  android:layout_width="match_parent"
                  android:layout_height="0dp"
                  android:layout_weight="20"
                  android:ellipsize="end"
                  android:maxLines="2"
                  android:padding="8dp"
                  android:text="@string/title_place_holder"
                  android:textColor="@color/white"
                  android:textSize="12sp" /&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  &lt;/layout&gt;
  </code></pre>