You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to handle long click on BottomNavigationView items for making own context menu like its in Instagram when user can hold "accout" icon and choose another profile.
I use this code:
But it works only when I start the app and holding item. If I start clicking on items and after that try to hold item again it does not work.
It seems like listener stops working after user starts communicating with BottomNavigationView.
Thank you.
The text was updated successfully, but these errors were encountered:
@wkns37@JeromeCHA Were you folks able to figure this out? I am facing the same issue where setOnLongClickListener on bottom bar is not triggering in any case. I just get isLongClickable's value false whenever I initialize the bottom bar.
@dishankmehta Nah, it's been a while since the issue. I have switched to embedded C programming and ain't interested in Android development anymore.
AFAIK, modern Jetpack Compose library has the ability to set both onClick and onLongClick listeners, but I'm not sure the library is ready to be in production.
I want to handle long click on BottomNavigationView items for making own context menu like its in Instagram when user can hold "accout" icon and choose another profile.
I use this code:
But it works only when I start the app and holding item. If I start clicking on items and after that try to hold item again it does not work.
It seems like listener stops working after user starts communicating with BottomNavigationView.
Thank you.
The text was updated successfully, but these errors were encountered: