ChocoBar
The usual Snackbar with more and colours.
Screenshots
Preview of Different kinds of ChocoBars you can use
Prerequisites
Add this in your root build.gradle
file (not your module build.gradle
file):
Dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
Usage
Each method always returns a Snackbar
object, so you can customize the Snackbar and much more. Check out the following examples:
- To display a green ChocoBar:
- To display a red ChocoBar:
- To display a simple ChocoBar with a button and some action on clicking the button.
- You can also create custom ChocoBars with tons of customizations like this:
Pull Request
Have some new ideas or found a bug? Do not hesitate to open an issue
and make a pull request
.