Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Andy-shu/SnackBar

Repository files navigation

SnackBar; toast-like alert pattern for Android inspired by the Google Material Design Spec

SnackBar on Android Arsenal

Mr.Waffle

Features

  • Set message text and optionally duration
  • Shows only one message at a time
  • Can have action item (e.g. undo, refresh, etc.)
  • Set text color of action items
  • Swipe down to dismiss all notifications as per documentation
  • Backwards compatible to 2.3.x

SnackBar Screenshot via Google

SnackBar on Google Play

Usage

##1. Add SnackBar to your project ###Maven Just add the following to your build.gradle.

dependencies {
 compile 'com.github.mrengineer13:snackbar:0.4.0'
}

###Eclipse

  1. Download ZIP then extract the SnackBar project
  2. From Eclipse menu: New > Android Project from Existing Code > SnackBar project > Finish
  3. Right click on your project
  4. Android > Library: Add > SnackBar

2. Show a message

Create SnackBar

SnackBar mSnackBar = new SnackBar(this);
mSnackBar.show("This library is awesome!");

Using this library?

Score It

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.

Contribution

Pull requests are welcome!

Feel free to contribute to SnackBar.

If you've implemented a bug fix or new feature, just create a pull request.

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.

About

toast-like alert pattern for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /