HarinTrivedi / FABRevealMenu-master

A general purpose android UI library to show a user show menu in accordance of Floating action button with material design guidelines.
https://harintrivedi.github.io/FABRevealMenu-master/
Apache License 2.0
614 stars 117 forks source link

How to unbind anchor view #4

Closed satti8893 closed 7 years ago

satti8893 commented 7 years ago

Hello,

I have a view pager with 3 fragments. In 1 fragment i have a requirement to display menu items on Fab click & its working properly. No issue there. In remaining 2 fragments also i have fab click but here i move to another activity.

The issue im facing is when i bind anchorview, its showing menu items in the remaining 2 fragments also. How can i unbind anchorview, so that i will get simple fab click to move to another activity.

I tried fabmenu.bindanchorview(null); but its not working.

HarinTrivedi commented 7 years ago

Try to implement click listener for FAB when you move to 2nd fragment, and bind menu when you are in 1st fragment.

satti8893 commented 7 years ago

Wow....Tanks a lot...Its working now :+1: