Popularity
5.5
Stable
Activity
0.0
Stable
594
27
102

Programming language: Java
Tags: Other Widget    
Latest version: v1.3

Android-UndoBar alternatives and similar packages

Based on the "Other Widget" category.
Alternatively, view Android-UndoBar alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Android-UndoBar or a related project?

Add another 'Other Widget' Package

README

DEPRECATED

Android-UndoBar is deprecated. No more development will be taking place.

Use Google's Snackbar instead.

Android - UndoBar

As seen in Google's Gmail app.

Screenshots

  • pre KitKat

alt text alt text

  • KitKat

alt text alt text

  • Lollipop and later

alt text alt text

Usage

  • It's as simple as:
new UndoBar.Builder(this)//
  .setMessage("X items deleted.")//
  .setListener(this)//
  .show();
  • You can also explicitly use one of the styles shown above. This is useful, for example, if you want to show a consistent Material Design style across all API levels. By default, it uses the style of the device's current API level. Here's an example:
new UndoBar.Builder(this)//
  .setMessage("X items deleted.")//
  .setListener(this)//
  .setStyle(UndoBar.Style.LOLLIPOP)//
  .show();

Example

Check out the sample project for an example implementation.

Download

Grab it via Gradle:

For API Level >= 15:

compile 'com.github.jenzz.undobar:library:1.3:[email protected]'

For API Level < 15 (includes nineoldandroids):

compile 'com.github.jenzz.undobar:library:1.3:[email protected]'

Still using Eclipse? Check out the master_eclipse branch and import it as a library project. Note that the Eclipse implementation is v1.1 only and won't receive any future updates.

License

This project is licensed under the MIT License.


*Note that all licence references and agreements mentioned in the Android-UndoBar README section above are relevant to that project's source code only.