title: How to change bg recyclerview specific position [ Kotlin ]
body: <p><strong>Q1</strong>
  I make some recyclerview with cardview I want to click some position and change bg current position to black and another position to green in the adapter</p>
  <p><strong>Q2</strong>
  I want to change something specific position in the adapter</p>
  <pre><code>class RecyclerAdapterBrand(private var imageList: List&lt;Int&gt;) :
  RecyclerView.Adapter&lt;RecyclerAdapterBrand.ViewHolder&gt;() {
  
  inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
  
      val imageView: ImageView = itemView.findViewById(R.id.imgViewBrand)
      val cardView: CardView = itemView.findViewById(R.id.cardViewBrand)
  
      init {
          // Set Recycler Click
          itemView.setOnClickListener { v: View -&gt;
              val positionClick: Int = (adapterPosition + 1)
          }
      }
  }
  
  override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
      val v = LayoutInflater.from(parent.context).inflate(
          R.layout.recy_brand_layout,
          parent,
          false
      )
      return ViewHolder(v)
  }
  
  override fun onBindViewHolder(holder: ViewHolder, position: Int) {
  
      holder.itemView.post {
          holder.imageView.setImageResource(imageList[position])
      }
  
  }
  
  override fun getItemCount(): Int {
      return imageList.size
  }
  </code></pre>