I am loading a list of categories and depending on which is selected, I need to show the products of the corresponding category in the RecyclerView
.
So when I f
Without your code we don't know how you implement your onClickListener.
Normally, you implement and set the item onClickListener in the viewHolder of your RecyclerView.Adapter.
For example: ViewHolder.itemView.setOnClickListener(listener);
So the solution is you can use recyclerView.findViewHolderForAdapterPosition(0).itemView.performClick()
PS: Do not use findViewHolderForLayoutPosition()
according to the Doc