title: Glide - Different rounded corners in RecyclerView
body: <p>I try to load a bunch of images into RecyclerView with the help of Glide library (4.9.0).
  My code for this is like:
  ViewHolder</p>
  
  <pre><code>inner class HorizontalImageViewHolder(v: View) : RecyclerView.ViewHolder(v) {
      fun bind(item: SliderImage) {
          val url = (item.icon as UrlIcon).url
          Glide.with(itemView)
              .load(url)
              .transform(RoundedCorners(40))
              .into(itemView.ivImage)
      }
  }
  </code></pre>
  
  <p>layout</p>
  
  <pre><code>    &lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_margin="8dp"
      android:background="@color/orangey_yellow"
      android:layout_width="@dimen/slider_image_width"
      android:layout_height="@dimen/slider_image_height"&gt;
  
      &lt;androidx.appcompat.widget.AppCompatImageView
          android:id="@+id/ivImage"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:scaleType="fitXY"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          tools:srcCompat="@tools:sample/backgrounds/scenic[17]" /&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>setData</p>
  
  <pre><code>fun setData(items: List&lt;SliderImage&gt;) {
      data.clear()
      data.addAll(items)
      notifyDataSetChanged()
  }
  </code></pre>
  
  <p>But when I scroll items, I see they have different rounded corners size like this</p>
  
  <p><a href="https://i.stack.imgur.com/04KjL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/04KjL.png" alt="enter image description here"></a></p>
  
  <p>Does anyone know what's the problem? Thanks in advance!</p>