[Solved] Disable only one from the list Recyclerview in android [closed]


Try this in onBindViewHolder method:

if (position==2)// position which you want to disable
{
 holder.textView.setOnClickListener(null)
}else {
    holder.textView.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            // perform action here
        }
    });
}

2

solved Disable only one from the list Recyclerview in android [closed]