You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
SurfaceView rendering with NavigationDrawer and statusbar #5738
First tests show that I'm not able to reproduce an rendering artefact when I have the basic Navigation Drawer setup (cfr. Android Studio Acitivity creation wizard) on Android N or KitKat.
I tried converting the standard Navigation Drawer setup with a translucent statusbar. My focus here is to recreate the same experience as Google maps exposes on that Platform.
I have been trying out some things to get the desired result. With a couple of window flags I was able to show NavigationDrawer correctly but you can see it clipped at the bottom.
Progress update: I was able to get it working on Android N without issue from #5738 (comment). It boils down brining the navigation drawer to front while doing the animation:
We have reverted back to TextureView #5765. Reopening this as I create a separate branch to track down clipping issues with NavDrawer and Snackbar with SurfaceView.
That SO answer indicates to add a transparent background color on a overlain layout. We already have a markerViewContainer layout there so I adjusted mapview_internal.xml to:
This does not only solve our issue on older devices it also remove the requirement that a user needs to work around this issue themselves as with #5738 (comment) or #5738 (comment)
Activity
tobrun commentedon Jul 21, 2016
First tests show that I'm not able to reproduce an rendering artefact when I have the basic Navigation Drawer setup (cfr. Android Studio Acitivity creation wizard) on Android N or KitKat.
tobrun commentedon Jul 21, 2016
I tried converting the standard Navigation Drawer setup with a translucent statusbar. My focus here is to recreate the same experience as Google maps exposes on that Platform.
Android Nougat:
Android Lollipop:
Android KitKat:
tobrun commentedon Jul 21, 2016
The NavigationDrawer itself isn't an issue but the status bar is:
tobrun commentedon Jul 21, 2016
I have been trying out some things to get the desired result. With a couple of window flags I was able to show NavigationDrawer correctly but you can see it clipped at the bottom.
tobrun commentedon Jul 21, 2016
Progress update: I was able to get it working on Android N without issue from #5738 (comment). It boils down brining the navigation drawer to front while doing the animation:
update: also not seeing an issue on Lollipop!
tobrun commentedon Jul 21, 2016
Looking at testing with KitKat now and seeing that the animation is not occurring full width:
Hiding the SurfaceView is showing the animation:
update:
a workaround for this would be to disable the scrimcolor:
This results in following UX:
[android] #5738 - default navigation drawer example
[android] #5738 - migrated to MapFragment approach & AppCompat compat…
[android] #5738 - navigation drawer proposition
bleege commentedon Jul 22, 2016
Seeing similar issues when testing on Samsung S5 running API 21
[android] #5738 - cleanup
[android] #5738 - default navigation drawer example
tobrun commentedon Jul 26, 2016
We have reverted back to TextureView #5765. Reopening this as I create a separate branch to track down clipping issues with NavDrawer and Snackbar with SurfaceView.
tobrun commentedon Jul 26, 2016
I have been searching the web to find some hints on how to resolve this. After trying a couple of things I came across this http://stackoverflow.com/questions/20373529/navigationdrawer-under-mapfragment-and-cameraview-surfaceview.
That SO answer indicates to add a transparent background color on a overlain layout. We already have a markerViewContainer layout there so I adjusted
mapview_internal.xmlto:This does not only solve our issue on older devices it also remove the requirement that a user needs to work around this issue themselves as with #5738 (comment) or #5738 (comment)
Before
After
tobrun commentedon Aug 3, 2016
#5804 was merged into the development branch of SurfaceView. Closing