Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jenzz/Android-UndoBar
[DEPRECATED] An implementation of Android's Undo Bar as seen in Google's Gmail app.
https://github.com/jenzz/Android-UndoBar
Last synced: 2 months ago
JSON representation
[DEPRECATED] An implementation of Android's Undo Bar as seen in Google's Gmail app.
- Host: GitHub
- URL: https://github.com/jenzz/Android-UndoBar
- Owner: jenzz
- License: mit
- Archived: true
- Created: 2014-02-04T15:09:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-14T13:51:02.000Z (over 8 years ago)
- Last Synced: 2024-07-01T10:58:46.023Z (7 months ago)
- Language: Java
- Homepage:
- Size: 836 KB
- Stars: 581
- Watchers: 26
- Forks: 95
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-ui - https://github.com/jenzz/Android-UndoBar
README
DEPRECATED
==========
Android-UndoBar is deprecated. No more development will be taking place.Use Google's [Snackbar](https://www.google.com/design/spec/components/snackbars-toasts.html) instead.
Android - UndoBar
==============
As seen in Google's [Gmail](https://play.google.com/store/apps/details?id=com.google.android.gm) app.* Simple Builder pattern
* Includes [three styles](https://github.com/jenzz/Android-UndoBar/blob/develop/library/src/main/java/com/jensdriller/libs/undobar/UndoBar.java#L24-50) (incl. Material Design [Snackbar](http://www.google.com/design/spec/components/snackbars-toasts.html))
* Supports **API Level >= 8**
(using [nineoldandroids](http://nineoldandroids.com/))
* **I18N** (about ~100 languages)Screenshots
-----------
* pre KitKat![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot1.png "Undo Bar")
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot2.png "Undo Bar Pressed")* KitKat
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot3.png "Undo Bar KitKat")
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot4.png "Undo Bar KitKat Pressed")* Lollipop and later
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot5.png "Undo Bar Lollipop")
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot6.png "Undo Bar Lollipop Pressed")Usage
-----
* It's as simple as:```java
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:
```java
new UndoBar.Builder(this)//
.setMessage("X items deleted.")//
.setListener(this)//
.setStyle(UndoBar.Style.LOLLIPOP)//
.show();
```Example
-------
Check out the [sample project](https://github.com/jenzz/Android-UndoBar/tree/master/sample) for an example implementation.Download
--------Grab it via Gradle:
For **API Level >= 15**:
```groovy
compile 'com.github.jenzz.undobar:library:1.3:api15Release@aar'
```For **API Level < 15** (includes [nineoldandroids](http://nineoldandroids.com/)):
```groovy
compile 'com.github.jenzz.undobar:library:1.3:api8Release@aar'
```Still using Eclipse? Check out the [master_eclipse](https://github.com/jenzz/Android-UndoBar/tree/master_eclipse) branch and import it as a library project.
Note that the Eclipse implementation is [v1.1](https://github.com/jenzz/Android-UndoBar/releases/tag/v1.1) only and won't receive any future updates.License
-------
This project is licensed under the [MIT License](https://raw.githubusercontent.com/jenzz/Android-UndoBar/master/LICENSE).