I have a list objects in a Recyclerview. When long-pressing an item I want to show a dialog with data from the item clicked.
Recyclerview
The Recyclerview
I think using a binding adapter for a recyclerview and put the adapter n ViewModel, then make the viewmodel is the model of fragment and passing adapter for the setAdapter method in xml itself.