Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. interface OnPosClickListener {
  2. fun onPosClick(position: Int)
  3. }
  4.  
  5. internal var onPosClickListener: OnPosClickListener? = null
  6.  
  7. inner class MViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
  8. internal var imageViewSmallP: ImageView? = null
  9.  
  10. init {
  11. imageViewSmallP = itemView.findViewById(R.id.iv_smallP)
  12. itemView.setOnClickListener { onPosClickListener?.onPosClick(adapterPosition) }
  13.  
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement