Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bottomsheet touch events received by mapview

I've implemented a bottom sheet inside of the layout containing a map view. When the bottomsheet is visible and expanded, when i touch or drag on the bottomsheet, the underling map moves aswell. Is it possible to block the touch events from reaching the mapview?

I've tried using setFilterTouchesWhenObscured without any luck.

ps. I'm not looking to disable the map gestures

like image 390
SjoerdvGestel Avatar asked Mar 10 '23 14:03

SjoerdvGestel


1 Answers

Just make it clickable adding android:clickable="true to it's definition on the XML layout

like image 68
antonio Avatar answered Mar 19 '23 22:03

antonio