title: Images are not aligning properly in the horizontal RecyclerView in Android Studio
body: <p><a href="https://i.stack.imgur.com/kiP2g.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kiP2g.jpg" alt="enter image description here" /></a></p>
  <p>and
  <a href="https://i.stack.imgur.com/heCuT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/heCuT.jpg" alt="enter image description here" /></a></p>
  <p>As you can see, the images don't seem to be aligning with each other very well. It seems to happen when the text for &quot;Hobby&quot; grows longer than the ones next to it. I still can't seem to fix this though. Here's the xml for the horizontal view:</p>
  <pre><code>&lt;FrameLayout
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id=&quot;@+id/recycle_view&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:orientation=&quot;horizontal&quot;
          android:scrollbars=&quot;horizontal&quot;
  
          app:layoutManager=&quot;androidx.recyclerview.widget.LinearLayoutManager&quot;
          /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  <p>and here's the xml for my adapter:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;com.google.android.material.card.MaterialCardView
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_margin=&quot;4dp&quot;
      &gt;
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;&gt;
  
          &lt;ImageView
              android:id=&quot;@+id/dog_img&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;194dp&quot;
              android:scaleType=&quot;centerCrop&quot;
              android:importantForAccessibility=&quot;no&quot;
  
              app:layout_constraintStart_toStartOf=&quot;parent&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintTop_toTopOf=&quot;parent&quot;
              app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
              /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/name&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;8dp&quot;
              android:textAppearance=&quot;@style/TextAppearance.MaterialComponents.Headline6&quot;
  
              app:layout_constraintStart_toStartOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/dog_img&quot;
              /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/age&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;8dp&quot;
              android:textAppearance=&quot;@style/TextAppearance.AppCompat.Body1&quot;
  
              app:layout_constraintStart_toStartOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/name&quot;
              /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/hobby&quot;
              android:layout_width=&quot;156dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;8dp&quot;
              android:textAppearance=&quot;@style/TextAppearance.AppCompat.Body1&quot;
  
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/name&quot;
              /&gt;
  
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  
  &lt;/com.google.android.material.card.MaterialCardView&gt;
  </code></pre>
  <p>I really want the images to line up with each other regardless of the length of the &quot;Hobby&quot;. Sorry if this might seem a bit basic, but I'm new to Android Studio. Anyways, thanks in advance!</p>