This method is binding the data on the list:
override fun onBindViewHolder(holder: CustomAdapter.ViewHolder, position: Int) {
holder.bindItems(userList[position])
holder.imgDelete.setOnClickListener(View.OnClickListener {
Toast.makeText(this,"Delete Button Clicked", Toast.LENGTH_SHORT).show()
})
holder.imgCopy.setOnClickListener(View.OnClickListener {
Toast.makeText(this,"Copy Button Clicked", Toast.LENGTH_SHORT).show()
})
}
Error getting :
None of the following functions can be called with the arguments supplied: public open fun makeText(p0: Context!, p1: CharSequence!, p2: Int): Toast! defined in android.widget.Toast
please check and help