RecyclerView OnClick not working

后端 未结 3 1167

I have made a horizontal recyclerview inside a fragment. Now when I click on any item I don\'t see the on click listener working. Here is my code for the Adapter class:
<

3条回答
  •  温柔的废话
    2020-12-19 07:15

    In ‘CustomViewHolder’ below ‘super(view)’ add view.setOnClickListener(this)

    You’re done Should work.

提交回复
热议问题