facebook/litho

ClickEvent beyond recycler

FunnyDevs opened this issue · 4 comments

Version

master

Hi! I have a Recycler component like a viewpager: the first screen is transparent and under it there are some components with click events; obviously the touch events are intercepted by recycler , but how can i bypass the recycler and send touch event to the underlying components ?

@FunnyDevs can you share a screenshot of you UI with more details, please? I'm not sure I'm following the use case.

As a wild guess I can suggest you to set custom LithoRecylerView.TouchInterceptor touchInterceptor for your RecyclerCollectionComponent

I had in mind an ui like facebook/snapchat/instagram camera bottom panel:
image

Something like the image, a button in background and a recycler in foreground: when i touch the button with a click or a longclick, the touch event must be discarded from the recycler and must be sent to the button.

On IG and FB this seems to be a foreground button on top of the rest of UI. Why do you need it to be behind if it would be covered by list content on scroll?
Anyway, the prop I've mentioned above should work for you

Closing this one for no activity. Please, reopen if needed