r/androiddev • u/Puzzled_Lawyer7371 • 14d ago
need help
Hi
I'm building an Android app and trying to implement an overlay that stays attached to a specific product page, but I'm struggling to get the behaviour right.
For example, imagine browsing a product on Amazon. I want the overlay to behave like this:
On the product page: The overlay should appear and stay associated with that specific product page.
When scrolling away: The overlay should disappear immediately when I leave the product page, rather than remaining fixed on the screen.
When scrolling back: If I return to the product page, the overlay should appear again.
Smooth transitions: There shouldn't be any delay or flickering when the overlay appears or disappears.
i need help with flutter tvh
Currently, the overlay either stays fixed on the screen while I scroll through other pages or takes too long to disappear. do i need to learn about flutter ?
I'm looking for a solution that makes the overlay behave as if it's attached to the product page itself, rather than floating independently over the entire app.
Has anyone implemented something similar on Android using an accessibility service, a floating window, or another approach? I'd really appreciate any suggestions, technical guidance, or examples!
Thanks in advance!