It doesn't work in the navigation drawer.
I need to rearrange items in the navigation drawer. it works with onTouchListener but disables onClick of items.
I need to use it with onLongClickListener so click can also work.
Sorry, my bad.
It works well in the drawer. I had an issue because of the existing very complex layout file where the recycler view is inside DrawerLayout, not in NavigationView.
It doesn't work in the navigation drawer. I need to rearrange items in the navigation drawer. it works with
onTouchListener
but disablesonClick
of items. I need to use it withonLongClickListener
so click can also work.Please help me to do this. Thanks.