Mapbox-navigation-android: Fix `CustomUIComponentStyleActivity` SummaryBottomSheet reappearance

Created on 6 May 2020  路  12Comments  路  Source: mapbox/mapbox-navigation-android

A somewhat thin sliver of the the bottom of the SummaryBottomSheet is missing when the NavigationView's camera is recentered during turn-by-turn navigation.

Screen Shot 2020-05-06 at 2 11 16 PM
Screen Shot 2020-05-06 at 2 11 22 PM
Screen Shot 2020-05-06 at 2 11 28 PM
Screen Shot 2020-05-06 at 2 10 59 PM

ezgif com-resize

UI bug

All 12 comments

are you talking about the skinny line at the bottom of SummaryBottomSheet during the transition?
I don't see it after the bottom sheet is fully displayed.

The skinny line (area where you can see the map at the bottom of the SummaryBottomSheet) is only visible as the SummaryBottomSheet goes through the process of being visible again. Meaning, when it transitions from BottomSheetBehavior.STATE_HIDDEN to BottomSheetBehavior.STATE_EXPANDED. It's not visible once the sheet's done expanding. Might have to do with the programmatic set up of views in the NavigationView class.

I think I might try to tackle this ticket after https://github.com/mapbox/mapbox-navigation-android/issues/2935. I'm close to finishing https://github.com/mapbox/mapbox-navigation-android/issues/2935.

The skinny line (area where you can see the map at the bottom of the SummaryBottomSheet) is only visible as the SummaryBottomSheet goes through the process of being visible again. Meaning, when it transitions from BottomSheetBehavior.STATE_HIDDEN to BottomSheetBehavior.STATE_EXPANDED. It's not visible once the sheet's done expanding. Might have to do with the programmatic set up of views in the NavigationView class.

It seems related to how SummaryBottomSheet is animated by the system when transitions between BottomSheetBehavior states. I believe we're only setting the state of the SummaryBottomSheet and letting Android to animate. We can explore managing the animation on our side to fix OP though 馃殌

I tried this out on a Pixel 2 (API 26) emulator. Didn't see any bottom sheet issues. Would be helpful if folks on @mapbox/navigation-android would look to see if they see the issue on their device on master. Might just be a rendering issue with my specific device.

@langsmith - my Samsung S9+ doesn't have problem.

Thanks @JunDai . Any issues in CustomUIComponentStyleActivity? I'm seeing weird bottom sheet issues as seen in the GIF below

ezgif com-resize (2)

Now I can't even recreate the original bottom space issue on my physical device 馃槙 Probably is leftover visual artifact glitch thing with my specific device that was appearing only a handful of times.

Steps to investigate original issue:

  1. Open the examples test app.
  2. Open the Navigation UI SDK section
  3. Open the NavigationView example, which is the 1st example listed. This is NavigationViewActivity in Android Studio.
  4. Wait for the puck to start moving along the route.
  5. Move the map so that the SummaryBottomSheet hides.
  6. Keep your eyes on the bottom of the device screen and then press the RE-CENTER button to go back to tracking the device location.
  7. As the SummaryBottomSheet re-appears, look for any spaces at the bottom of the SummaryBottomSheet and/or any other sheet loading issues.

Cannot reproduce the original issue. cc @langsmith

Thanks for looking @abhishek1508. Any issues in CustomUIComponentStyleActivity on your device?

Yeah I see this behavior in CustomUIComponentStyleActivity
cc @langsmith

@abhishek1508 , you see the same weird loading behavior that is shown in my GIF above?

Yes @langsmith

@abhishek1508 , you see the same weird loading behavior that is shown in my GIF above?

same here 馃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jethromay picture jethromay  路  7Comments

carstenhag picture carstenhag  路  8Comments

riastrad picture riastrad  路  3Comments

carstenhag picture carstenhag  路  5Comments

skienzl picture skienzl  路  5Comments