title: Image doesn't appear when placing it in a card view
body: <p>I am loading images from firebase and loading them into card tiles in a staggered recycler view. I want the width of the photos to be consistent and match parent, and the height to change depending on the height of the photo.</p>
  
  <p>I am not sure what am I doing wrong but the images don't show. I can see a thin line where the photo should be, kind of seems like it is the photo but it had like a 1px height, just a horizontal line.</p>
  
  <p>This is my xml</p>
  
  <pre><code>&lt;androidx.cardview.widget.CardView
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          android:id="@+id/staggered_feed_image_card"
          app:cardCornerRadius="16dp"
          app:cardElevation="0dp"
          android:layout_marginEnd="16dp"
          android:layout_marginStart="16dp"&gt;
      &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:srcCompat="@drawable/no_dread"
              android:id="@+id/staggered_feed_image"
              android:scaleType="centerCrop"/&gt;
  &lt;/androidx.cardview.widget.CardView&gt;
  </code></pre>
  
  <p>I also tried to wrap the imageView in another layout such as follows:</p>
  
  <pre><code>&lt;androidx.cardview.widget.CardView
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          app:layout_constraintTop_toTopOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          android:id="@+id/staggered_feed_image_card"
          app:cardCornerRadius="16dp"
          app:cardElevation="0dp"&gt;
      &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
      &lt;ImageView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              app:srcCompat="@drawable/no_dread"
              android:id="@+id/staggered_feed_image"
              android:scaleType="centerCrop"/&gt;
      &lt;/RelativeLayout&gt;
  &lt;/androidx.cardview.widget.CardView&gt;
  </code></pre>
  
  <p>I've tried both relative-layout or vertical linear-layout and tried both with the height being either wrap content or match parent, and neither work.<a href="https://i.stack.imgur.com/fOvTm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fOvTm.png" alt="This is the recycler, the lines aare supposed to be the photos"></a></p>