inner class holder(itemView: View?) : RecyclerView.ViewHolder(itemView) {
init {
itemView?.setOnClickListener {
//есть it, отвечающий за view
}
}
}
inner class holder(itemView: View?) : RecyclerView.ViewHolder(itemView)
private val play: ImageView? = itemView?.findViewById(R.id.main_vase_rallies_play)
init {
itemView?.setOnClickListener {
println("all view")
}
play?.setOnClickListener {
println("play")
}
}
}