title: load image by picasso in recyclerview by databinding kotlin
body: <p>I want to use <code>databinding</code> to load image by <code>Picasso</code> in <code>recycler view</code> but when I don't know how to use  <code>@BindingAdapter</code> in my <code>recycler view</code> <code>data class</code>. I know how it is worked in java but in kotlin I don't know how to use it. This is my data class for my adapter:</p>
  <pre><code>data class Users(val name: String,
               val email: String,
               val img_link: String)
  </code></pre>
  <p>And this is my adapter:</p>
  <pre><code>class AdapterRecPart02(private val context: Context, private val ls: List&lt;Users&gt;) :
  RecyclerView.Adapter&lt;AdapterRecPart02.ItemAdapter&gt;() {
  
  
  override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemAdapter {
  
      val inflater = LayoutInflater.from(context)
      val binding: LayoutRecPart02Binding =
          DataBindingUtil.inflate(inflater, R.layout.layout_rec_part02, parent, false)
      return ItemAdapter(binding)
  }
  
  override fun onBindViewHolder(holder: ItemAdapter, position: Int) {
  
      holder.bind(ls[position])
  
  }
  
  override fun getItemCount(): Int = ls.size
  
  
  inner class ItemAdapter(private val bindingAdapter: LayoutRecPart02Binding) :
      RecyclerView.ViewHolder(bindingAdapter.root) {
  
      fun bind(user: Users) {
  
          bindingAdapter.users = user
          bindingAdapter.executePendingBindings()
  
      }
  
  
  }
  </code></pre>
  <p>}</p>
  <p>And this is my custom layout for my adapter:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  </code></pre>
  
  <pre><code>&lt;data&gt;
  
      &lt;variable
          name=&quot;users&quot;
          type=&quot;ir.xs.mvvm.model.Users&quot; /&gt;
  
  &lt;/data&gt;
  
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/img_user&quot;
          android:layout_width=&quot;120dp&quot;
          android:layout_height=&quot;120dp&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/tv_name&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_toRightOf=&quot;@+id/img_user&quot;
          android:text=&quot;@{users.name, default = name}&quot;
          android:textSize=&quot;16sp&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/tv_email&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_below=&quot;@+id/tv_name&quot;
          android:layout_marginTop=&quot;16dp&quot;
          android:layout_toRightOf=&quot;@+id/img_user&quot;
          android:text=&quot;@{users.email, default = email}&quot;
          android:textSize=&quot;16sp&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>