toast-like alert pattern for Android inspired by the Google Material Design Spec
Java
1,209
139 commits
updated Oct 15, 2020

This library is deprecated in favor of the new Design Support Library which includes a Snackbar. It is due to this development that this library is no longer activly being developed.

Add SnackBar to your project
###Maven
Just add the following to your build.gradle.
dependencies { compile 'com.github.mrengineer13:snackbar:1.2.0' }
Show a message
new SnackBar.Builder(this)
.withOnClickListener(this)
.withMessage("This library is awesome!") // OR
.withMessageId(messageId)
.withTypeFace(myAwesomeTypeFace)
.withActionMessage("Action") // OR
.withActionMessageId(actionMsgId)
.withTextColorId(textColorId)
.withBackGroundColorId(bgColorId)
.withVisibilityChangeListener(this)
.withStyle(style)
.withDuration(duration)
.show();
new SnackBar.Builder(getActivity().getApplicationContext(), root)
.withOnClickListener(this)
.withMessage("This library is awesome!") // OR
.withMessageId(messageId)
.withTypeFace(myAwesomeTypeFace)
.withActionMessage("Action") // OR
.withActionMessageId(actionMsgId)
.withTextColorId(textColorId)
.withBackGroundColorId(bgColorId)
.withVisibilityChangeListener(this)
.withStyle(style)
.withDuration(duration)
.show();
If you're using this library in one of your projects just send me a tweet and I'll add your project to the list.
Feel free to contribute to SnackBar.
Just create your branch then submit pull request on the dev branch.
If you have a bug to report a feature to request or have other questions, file an issue. I'll try to answer as soon as I can.
Overall
Maintained
Code review
Latest release
Releases this year
392 followers · starred Sep 2014
2,619 followers · starred Sep 2014
121 followers · starred Nov 2014
467 followers · starred Nov 2014
toast-like alert pattern for Android inspired by the Google Material Design Spec
Java
1,209
139 commits
updated Oct 15, 2020

This library is deprecated in favor of the new Design Support Library which includes a Snackbar. It is due to this development that this library is no longer activly being developed.

Add SnackBar to your project
###Maven
Just add the following to your build.gradle.
dependencies { compile 'com.github.mrengineer13:snackbar:1.2.0' }
Show a message
new SnackBar.Builder(this)
.withOnClickListener(this)
.withMessage("This library is awesome!") // OR
.withMessageId(messageId)
.withTypeFace(myAwesomeTypeFace)
.withActionMessage("Action") // OR
.withActionMessageId(actionMsgId)
.withTextColorId(textColorId)
.withBackGroundColorId(bgColorId)
.withVisibilityChangeListener(this)
.withStyle(style)
.withDuration(duration)
.show();
new SnackBar.Builder(getActivity().getApplicationContext(), root)
.withOnClickListener(this)
.withMessage("This library is awesome!") // OR
.withMessageId(messageId)
.withTypeFace(myAwesomeTypeFace)
.withActionMessage("Action") // OR
.withActionMessageId(actionMsgId)
.withTextColorId(textColorId)
.withBackGroundColorId(bgColorId)
.withVisibilityChangeListener(this)
.withStyle(style)
.withDuration(duration)
.show();
If you're using this library in one of your projects just send me a tweet and I'll add your project to the list.
Feel free to contribute to SnackBar.
Just create your branch then submit pull request on the dev branch.
If you have a bug to report a feature to request or have other questions, file an issue. I'll try to answer as soon as I can.
Overall
Maintained
Code review
Latest release
Releases this year
392 followers · starred Sep 2014
2,619 followers · starred Sep 2014
121 followers · starred Nov 2014
467 followers · starred Nov 2014