mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
474 stars 132 forks source link

Using scrollable views as annotations #1939

Closed serhuz closed 1 week ago

serhuz commented 1 year ago

Environment

Observed behavior and steps to reproduce

Expected behavior

The recycler should be scrollable

Notes / preliminary analysis

Seems like the MapView is consuming touch events and the recycler becomes unscrollable

kiryldz commented 1 year ago

hi, can you please check if recycler is scrollable when using v10.9.0?

serhuz commented 1 year ago

yes, scrolling works on v10.9.0

kiryldz commented 1 year ago

Thanks for confirming! It seems that we need to introduce some new API to allow / restrict intercepted touch events. For now I believe using v10.9.0 is the only option to make it work.

yunikkk commented 1 year ago

@serhuz could you try to call https://developer.android.com/reference/android/view/ViewGroup#requestDisallowInterceptTouchEvent(boolean) to stop map from intercepting recycler touch events?

kiryldz commented 1 week ago

Closing as stale.