I have a recycler view and when user long clicks an item, I begin an action mode with beginActionMode and later finish the action mode when selection is done.
beginActionMode