Android Groupie - context menu on long press
Using Groupie, along with view bindings, I can't figure out how to open a context menu when long pressing a Item.
I have a couple of overrides in the fragment which has the GroupieAdapter:
override fun onCreateContextMenu(
menu: ContextMenu,
v: View,
menuInfo: ContextMenu.ContextMenuInfo?
) {
super.onCreateContextMenu(menu, v, menuInfo)
menu.setHeaderTitle("Pick option")
requireActivity().menuInflater.inflate(R.menu.save_game_item_context_menu, menu)
}
override fun...