MrEngineer13 / SnackBar

toast-like alert pattern for Android inspired by the Google Material Design Spec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display error with Google Maps

johnjohndoe opened this issue · comments

I want to show a status message when there is no network connection. For some reason the SnackBar looks like this on a Google Map:

SnackBar Error

The event is triggered in onCameraChange() which happens when I swipe the map. Maybe there there is an issue when multiple events occur?

Is this still happening after you updated to v0.4.1?

Looks much better with v0.4.1!

You might wanna adjust the vertical position a bit. The message text hangs a bit under the vertical center.

Glad to know that fixed your issue.

Actually per the guidelines the message text should be slightly (4dp) off vertical center. I thought it was a bit weird but you can checkout the specs here:
Snackbar specs

Weird indeed. It looks like the text is aligned "top" within the inner corridor. This would probably compensate the 4dp.