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

Add option to show at anchor location. #28

Open geftimov opened 2 years ago

geftimov commented 2 years ago

Hello @saket, first of all great library.

This is my take on "fixing" #21 and #26 This PR is for you to have a look at a potential solution. Showing at location is trying always fit the popup in the current window.

https://user-images.githubusercontent.com/2619500/178484524-8d657634-2378-42cc-9284-b4cb117f0e1c.mp4

Goooler commented 2 years ago

@saket CC

geftimov commented 2 years ago

@Goooler @saket I uploaded a video in the PR description showing a recycle view with items that are showing menu from anchor or as a dropdown. It is as follows : 1) If true - show from achor 2) If false - show as dropdown

fobos531 commented 1 year ago

Hey @saket , do you think it would be possible to merge this?

zs1973 commented 1 year ago

why not merge?what are @saket doing

Goooler commented 1 year ago

@saket Can we merge this? It would be very useful.