Skip to content

Instantly share code, notes, and snippets.

@Ten-Wang
Last active April 6, 2018 08:50
Show Gist options
  • Save Ten-Wang/d4502859d5f8d626157dee28f62ca2d7 to your computer and use it in GitHub Desktop.
Save Ten-Wang/d4502859d5f8d626157dee28f62ca2d7 to your computer and use it in GitHub Desktop.
SnackBar
val snackBar = Snackbar.make(fullscreen_content.rootView, "Test", Snackbar.LENGTH_SHORT)
snackBar.setAction("Dismiss", { snackBar.dismiss() })
Snackbar.make(fullscreen_content.rootView, "Test", Snackbar.LENGTH_SHORT)
.setAction("Dismiss", { it.dismiss() })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment