RecyclerVIew onItemClickListener Not working

后端 未结 6 1249
一个人的身影
一个人的身影 2021-01-28 02:20

I am working on RecyclerView and try to using on click listener for each item of recyclcerview using Interface

Here is my Activity cla

6条回答
  •  猫巷女王i
    2021-01-28 03:01

    @Override
    public void onBindViewHolder(RecyclerViewAdapter.ItemViewHolder holder, int position) {
            holder.name.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
    
            }
        });
    
    }
    

    Try like this

提交回复
热议问题