title: recyclerView won't scroll smoothly for first time
body: <p>I have a recyclerView inside a fragment, this fragment is located in a viewpager2.</p>
  <p>I read data from server and convert them to my ModelClass, them create an ArrayList and pas this array list to recyclerView.
  here is my recyclerView item layout:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:id=&quot;@+id/root&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_margin=&quot;10dp&quot;
      android:background=&quot;@drawable/main_icon_background&quot;
      android:elevation=&quot;5dp&quot;
      android:layoutDirection=&quot;rtl&quot;
      android:orientation=&quot;horizontal&quot;
      android:padding=&quot;10dp&quot;&gt;
  
  
      &lt;ImageView
          android:id=&quot;@+id/image&quot;
          android:layout_width=&quot;120dp&quot;
          android:layout_height=&quot;match_parent&quot;
          android:scaleType=&quot;centerCrop&quot;
          android:src=&quot;@color/black&quot; /&gt;
  
      &lt;LinearLayout
          android:layout_width=&quot;0dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_weight=&quot;0.6&quot;
          android:orientation=&quot;vertical&quot;&gt;
  
          &lt;TextView
              android:id=&quot;@+id/title&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginStart=&quot;10dp&quot;
              android:layout_marginEnd=&quot;10dp&quot;
              android:ellipsize=&quot;end&quot;
              android:maxLines=&quot;1&quot;
              android:textAppearance=&quot;@style/vazir_font&quot;
              android:textColor=&quot;@color/black&quot; /&gt;
  
          &lt;TextView
              android:id=&quot;@+id/description&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginStart=&quot;10dp&quot;
              android:ellipsize=&quot;end&quot;
              android:maxLines=&quot;3&quot;
              android:textAppearance=&quot;@style/vazir_font&quot;
              android:textColor=&quot;@color/gray&quot;
              android:textSize=&quot;13sp&quot; /&gt;
  
  
          &lt;LinearLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;1.5dp&quot;
              android:layout_marginStart=&quot;20dp&quot;
              android:layout_marginTop=&quot;5dp&quot;
              android:layout_marginEnd=&quot;20dp&quot;
              android:layout_marginBottom=&quot;8dp&quot;
              android:alpha=&quot;0.5&quot;
              android:background=&quot;@color/gray&quot; /&gt;
  
          &lt;LinearLayout
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:orientation=&quot;horizontal&quot;&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/source&quot;
                  android:layout_width=&quot;0dp&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_marginStart=&quot;10dp&quot;
                  android:layout_marginEnd=&quot;10dp&quot;
                  android:layout_weight=&quot;0.8&quot;
                  android:ellipsize=&quot;end&quot;
                  android:maxLines=&quot;1&quot;
                  android:textAppearance=&quot;@style/vazir_font&quot;
                  android:textColor=&quot;@color/colorPrimaryDark&quot;
                  android:textSize=&quot;13sp&quot; /&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/date&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:ellipsize=&quot;end&quot;
                  android:gravity=&quot;end&quot;
                  android:textAppearance=&quot;@style/vazir_font&quot;
                  android:textColor=&quot;@color/colorAccent&quot;
                  android:textSize=&quot;13sp&quot; /&gt;
  
          &lt;/LinearLayout&gt;
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  <p>and here is my recyclerView adapter:</p>
  <pre><code>class NewsRecyclerViewAdapter : RecyclerView.Adapter&lt;NewsRecyclerViewAdapter.ViewHolder&gt;() {
  
      private val items = ArrayList&lt;NewsAdapterModel&gt;()
      lateinit var onClick: NewsTutorialClickListener
  
      fun add(list: ArrayList&lt;NewsAdapterModel&gt;) {
          items.clear()
          items.addAll(list)
          notifyDataSetChanged()
      }
  
      override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
          val view =
              LayoutInflater.from(parent.context).inflate(R.layout.news_recycler_model, parent, false)
          return ViewHolder(view)
      }
  
      override fun getItemCount(): Int = items.size
  
      override fun onBindViewHolder(holder: ViewHolder, position: Int) {
          holder.binding(items[position])
      }
  
      override fun getItemId(position: Int): Long {
          return items[position].id.hashCode().toLong()
      }
  
  
      inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
  
          fun binding(model: NewsAdapterModel) {
  
  
              itemView.setOnClickListener {
                  onClick.onClick(model.id)
              }
  
  
              itemView.title.text = model.title
              itemView.description.text = model.description
              itemView.date.text = Arrange().persianConverter(model.date)
              itemView.source.text = model.source
  
              Glide.with(itemView.context)
                  .load(model.image)
                  .placeholder(R.mipmap.logo)
                  .into(itemView.image)
  
          }
      }
  
  }
  </code></pre>
  <p>I used this recycler view in my fragment just like this:</p>
  <pre><code> override fun onActivityCreated(savedInstanceState: Bundle?) {
          super.onActivityCreated(savedInstanceState)
  
          adapter.onClick = this
          binding.recyclerView.layoutManager = LinearLayoutManager(context)
          binding.recyclerView.adapter = adapter
          binding.recyclerView.setHasFixedSize(true)
          binding.recyclerView.setItemViewCacheSize(20)
  
  
          scope.launch {
              withContext(Dispatchers.Default) {
                  fetchNews()
              }
          }
      }
  </code></pre>
  <p>my problem is : when I scroll recycler view for first time it is not smooth and it seems some frames are jumped, but when I reach end of recyclerView and scroll to up then scroll down it is very smooth and find. how can I solve this issue?
  I also should mention that Items of recyclerView are not much, it's around 10 items.</p>