Skip to content
The usual Snackbar with more 🍫 and colours πŸŽ‰
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


ChocoBar Download API AwesomeAndroid Android Arsenal

The usual Snackbar with more 🍫 and colours πŸŽ‰. Inspired by Light.


AndroidPub Post

You can read the AndroidPub post about this library, the reason of it's existence, the perks it provides and other details, here.


Preview of Different kinds of ChocoBars you can use

screenshot 2018-12-31 at 4 26 25 am screenshot 2018-12-31 at 4 24 32 am screenshot 2018-12-31 at 4 25 38 am screenshot 2018-12-31 at 4 25 09 am screenshot 2018-12-31 at 4 26 00 am


Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
		repositories {
			maven { url '' }


Add this to your module's build.gradle file (make sure the version matches the JitPack badge above):

dependencies {
	        implementation 'com.github.Pradyuman7:ChocoBar:V1.0'


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:
		  .green()  // in built green ChocoBar
  • To display a red ChocoBar:
		  .red()   // in built red ChocoBar
  • To display a simple ChocoBar with a button and some action on clicking the button.
		.setActionClickListener(new View.OnClickListener() {
                	public void onClick(View v) {
                     		Toast.makeText(MainActivity.this,"You clicked",Toast.LENGTH_LONG).show();
		.setText("This is a normal ChocoBar")
  • You can also create custom ChocoBars with tons of customizations like this:
	          .setText("This is a custom Chocobar")

Pull Request

Have some new ideas or found a bug? Do not hesitate to open an issue and make a pull request.


ChocoBar is under License: MIT. See the LICENSE file for more info.

You can’t perform that action at this time.