saket / cascade

Nested popup menus with smooth height animations for Android
https://saket.github.io/cascade
Apache License 2.0
2.02k stars 67 forks source link

Enhancement Request: Option to hide menu rather than navigating back #11

Closed waseefakhtar closed 3 years ago

waseefakhtar commented 3 years ago

I noticed that it currently navigates back from a submenu when clicked on an item. What about adding an option to hide the menu altogether rather than navigating back?

Demo:

saket commented 3 years ago

Oh yeah item clicks will always dismiss the menu. The sample app intentionally navigates back instead: https://github.com/saket/cascade/blob/891031ab4d52dc00f41fdb0fb1e094279e92143c/sample/src/main/java/me/saket/cascade/sample/MainActivity.kt#L82-L87