• This repository has been archived on 16/Jan/2019
  • Stars
    star
    582
  • Rank 76,813 (Top 2 %)
  • Language
    Java
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[DEPRECATED] An implementation of Android's Undo Bar as seen in Google's Gmail app.

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:api15Release@aar'

For API Level < 15 (includes nineoldandroids):

compile 'com.github.jenzz.undobar:library:1.3:api8Release@aar'

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.

More Repositories

1

Android-MaterialPreference

[DEPRECATED] A simple backward-compatible implementation of a Material Design Preference aka settings item
Java
509
star
2

RxAppState

[DEPRECATED] A simple Android library that monitors app state changes (background / foreground).
Java
195
star
3

ContentProviderHelper

A nice little Android app that helps developers to discover and query content providers.
Java
112
star
4

Android-MultiStateListView

A simple Android ListView that lets you define three states: Loading, Empty & Error
Java
72
star
5

Android-StaticLauncher

An example project of Android annotation processing using Gradle.
Java
38
star
6

Java-PojoBuilder

A Java code generator for the builder pattern using annotation processing
Java
35
star
7

gradle-android-buildconstants-plugin

A Gradle plugin for Android which generates both Java and XML constants as part of the build process.
Groovy
28
star
8

Java-NoOp

Easy no-op Java interface implementations
Java
21
star
9

social-web-search

Search the social web... Find people & posts on Twitter, Facebook and Google+.
13
star
10

android-styled-dialogs

A simple library for styling Android dialogs in the Holo theme. It also removes boilerplate code for displaying simple dialogs.
Java
3
star
11

.shell_config

A collection of all the stuff I'm using to customize my cmd prompt.
Shell
3
star
12

java-android-utils

A collection of useful utilities, templates and snippets for Java & Android development that I find myself using in many projects.
Java
2
star
13

Android-DemoApp

A simple demo app for an offline-first architecture.
Kotlin
2
star
14

leo-chrome

A simple Chrome extension for the LEO dictionary (http://goo.gl/7eMdg).
JavaScript
1
star
15

RxJava-Tidbits

Tips & Tricks and solutions to common, real-world problems using RxJava
Java
1
star
16

Android-Sandbox

My little sandbox for trying out cool Android stuff.
Java
1
star
17

Android-PeopleNotes

Android app to keep notes about people
Kotlin
1
star
18

TheTVDB-Retrofit

Java API for TheTVDB.com based on Square's Retrofit REST client
Java
1
star