title: How to swap the selected recycler view item with the first item with change background color
body: <p><a href="https://i.stack.imgur.com/8jWnh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8jWnh.jpg" alt="enter image description here" /></a>here I change the background of the selected item position and set that item to the first position init</p>
  <pre><code>    override fun onBindViewHolder(holder: FeelingsViewHolder, position: Int) {
          val item = dataset[position]
          holder.title.text = context.resources.getString(item.stringResourceId)
          holder.emoji.setImageResource(item.imageResourceId)
  
          holder.emoji.setOnClickListener {
              selectedItemPos = position
  
              notifyItemMoved(position, 0)
          }
  
          if (selectedItemPos == position)         
  
  holder.itemView.setBackgroundColor(Color.parseColor(&quot;#200f726b&quot;))
          else
            holder.itemView.setBackgroundColor(Color.parseColor(&quot;#ffffff&quot;))
      override fun getItemCount() = dataset.size
  }
  </code></pre>
  <p>I tried different ways but I failed</p>