Light
The usual Snackbar, but elegant. Inspired by Toasty.
Screenshots
success | Info | warning |
---|---|---|
![]() |
![]() |
![]() |
Error | Normal | Custom |
---|---|---|
![]() |
![]() |
![]() |
Download
Gradle
Add the code below to your root build.gradle
file (NOT
your module build.gradle
file, check here for an example).
Add the code below to your module's build.gradle
file:
Maven
Usage
Each method always returns a Snackbar
object, so you can customize the Snackbar much more. DO NOT FORGET TO CALL THE show()
METHOD!
- To display a success Snackbar:
- To display an info Snackbar:
- To display a warning Snackbar:
- To display an error Snackbar:
- To display the usual Snackbar:
- You can also create your own Snackbar in custom-designed style:
Extra
You can pass formatted text to Light!
Pull Request
Have some new ideas or find a bug? Do not hesitate to open an issue
and make a pull request
.