click on recyclerview item android code example
Example 1: how to programatically click on recyclerview item kotlin
recyclerView.findViewHolderForAdapterPosition(pos).itemView.performClick();
Example 2: remove item from adapter android recyclerview
private void removeItem(int position) {
int newPosition = holder.getAdapterPosition();
model.remove(newPosition);
notifyItemRemoved(newPosition);
notifyItemRangeChanged(newPosition, model.size());
}