mapbox / mapbox/mapbox-plugins-android

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

Open
#1,186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
242
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the black screen with a MapView inside a RecyclerView on Android API 29 using the listed Mapbox plugin versions. Compare the scrolling behavior shown in the supplied videos; done means the activity remains visible without black screens while scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.