title: Image in ListView does not follow the width given and has different widths in different rows
body: <p>I have made a custom list view with an imageview and textview in a row.
  Some of the images are not aligning up with the other images and it looks terrible. Below is a screenshot of how it looks.
  <a href="https://i.stack.imgur.com/xpDmP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xpDmP.jpg" alt="Sceenshot of the app"></a></p>
  
  <p>Notice how the icon in music and albums are taking extra space.</p>
  
  <p>The xml for the row is below</p>
  
  <pre><code>&lt;LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android"
            xmlns:app = "http://schemas.android.com/apk/res-auto"
            android:layout_width = "match_parent"
            android:layout_height = "match_parent"
            android:background = "#F7BA70"
            android:orientation = "horizontal"&gt;
  
  &lt;ImageView
      android:id = "@+id/categoryListRowImage"
      android:layout_width = "30dp"
      android:layout_height = "50dp"
      android:layout_gravity = "center_vertical"
      android:layout_weight = "0.32"
      android:adjustViewBounds = "true"
      android:contentDescription = "Image Description"
      android:scaleType = "fitXY"
      android:src = "@drawable/music" /&gt;
  
  &lt;TextView
      android:id = "@+id/categoryListRowId"
      android:layout_width = "wrap_content"
      android:layout_height = "wrap_content"
      android:visibility = "gone" /&gt;
  
  &lt;TextView
      android:id = "@+id/categoryListRowText"
      android:layout_width = "wrap_content"
      android:layout_height = "50dp"
      android:layout_gravity = "center_vertical"
      android:layout_weight = "3"
      android:gravity = "center_vertical"
      android:paddingEnd = "20dp"
      android:paddingLeft = "20dp"
      android:paddingRight = "20dp"
      android:paddingStart = "20dp"
      android:textColor = "#FFF"
      android:textSize = "24sp" /&gt;
  
  &lt;ImageView
      android:layout_width = "20dp"
      android:layout_height = "20dp"
      android:layout_gravity = "center_vertical"
      android:layout_marginRight = "20dp"
      android:scaleType = "fitXY"
      android:src = "@drawable/white_arrow" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I have used the same icon for all the images</p>
  
  <p>How can the same listview give me different width in images?</p>