I have a CheckBox in my recyclerview items with Gone visibility . I want to make it visible for all items in recyclerview when I have a longClick on one of items .so I did
You could create a boolean in your adapter that stores the information if the there was a long press or not and in your onBindViewHolder
you check whether this is true or false and set the visibility according to it: holder.chk_faviorateVideo.setVisibility(longPressed ? View.VISIBLE : View.GONE);
Then in your click listener you toggle this variable and call notifyDataSetChanged()