BrotherV / Floating-ArcMenu

A prety menu for all application
129 stars 35 forks source link

listener after open/ close menu #10

Open ahmedalkhashab opened 7 years ago

ahmedalkhashab commented 7 years ago

Hi,

How can i listen to user action s on menu ?

BrotherV commented 7 years ago

Hi, what do you want to do exactly?! If you want to listen to child click events you can easily use app example instruction. Is there anything else that you need to know?!

ahmedalkhashab commented 7 years ago

i want to listen on parent i will add listener which fire when status "isExpanded" has changed

BrotherV commented 7 years ago

Hello again, Well it has a listener for menu button, you can use setOnClickListener for menu. In another word you can access to menu click directly and also you can check whether the menu isClose or isOpen. Remeber the listener will fire before actions(a few mili seconds before actions)

ahmedalkhashab commented 7 years ago

i used your listener ArcLayout.OnMenuItemOpenClose

and grant access to ArcLayout -> setOnMenuItemOpenClose

public void setOnMenuItemOpenClose(ArcLayout.OnMenuItemOpenClose listener){
        mArcLayout.setOnMenuItemOpenClose(l);
}

Thank you your library is the best