Skip to content

Instantly share code, notes, and snippets.

@crystalz411
Created April 15, 2021 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crystalz411/b3f543a8c6ac28cfb01e285d9dea0a1d to your computer and use it in GitHub Desktop.
Save crystalz411/b3f543a8c6ac28cfb01e285d9dea0a1d to your computer and use it in GitHub Desktop.
findViewById<FloatingActionButton>(R.id.fab).setOnClickListener { view ->
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment