mapbox / mapbox-plugins-android

Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
https://www.mapbox.com/android-docs/plugins/overview/
BSD 2-Clause "Simplified" License
241 stars 119 forks source link

Scrolling recyclerView which contains MapView keeps showing blacks screens over the activity. #1186

Open BoumBam opened 3 years ago

BoumBam commented 3 years ago

I'm using a MapView in a vecyclerView, but I'm getting a strange behavior. When scrolling the recyclerView, the MapView shows a black screen over the activity.

I have already set : Mapbox.getInstance(context, getString(R.string.mapbow_access_token)); Before: setContentView(R.layout.activity_home);

Android API: 29 Mapbox Navigation SDK version: implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v9:0.12.0' implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.8.0'

Expected behavior

The problem is with your map library because when I use another mapping library like google-maps-android-api-2, everything works fine as you can Look at that video: https://youtu.be/y20aw5BAmTo

Actual behavior

The problem happened when I use your mapBox library, please Look at that other video: https://youtu.be/p4WPyNfT034

What shall I do to remove the blacks screens over the activity ?

How to solve that issue ?

Thanks for you great library.