Skip to content
Advertisement

Tag: android-snackbar

Making a Snackbar Without a View?

I want to show a snackbar as soon as the user opens the Google Maps activity, but the thing is that there’s no views in the activity to use as the first parameter of the activity (in the findViewById() of Snackbar.make()). What do I put there? Here’s the java class code: Also, here is the activity xml code: And lastly,

Advertisement