Skip to content
This repository was archived by the owner on Jan 16, 2019. It is now read-only.

Commit 3b2320c

Browse files
author
Jens Driller
committed
v1.3
1 parent baaf44d commit 3b2320c

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ Android - UndoBar
33
As seen in Google's [Gmail](https://play.google.com/store/apps/details?id=com.google.android.gm) app.
44

55
* Simple Builder pattern
6-
* Includes pre & post **KitKat** design
6+
* 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))
77
* Supports **API Level >= 8**
88
(using [nineoldandroids](http://nineoldandroids.com/))
9+
* **I18N** (about ~100 languages)
910

1011
Screenshots
1112
-----------
@@ -14,11 +15,16 @@ Screenshots
1415
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot1.png "Undo Bar")
1516
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot2.png "Undo Bar Pressed")
1617

17-
* KitKat and later
18+
* KitKat
1819

1920
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot3.png "Undo Bar KitKat")
2021
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot4.png "Undo Bar KitKat Pressed")
2122

23+
* Lollipop and later
24+
25+
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot5.png "Undo Bar Lollipop")
26+
![alt text](https://raw.github.com/jenzz/Android-UndoBar/master/assets/Screenshot6.png "Undo Bar Lollipop Pressed")
27+
2228
Usage
2329
-----
2430
* It's as simple as:
@@ -30,6 +36,16 @@ new UndoBar.Builder(this)//
3036
.show();
3137
```
3238

39+
* 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:
40+
41+
```java
42+
new UndoBar.Builder(this)//
43+
.setMessage("X items deleted.")//
44+
.setListener(this)//
45+
.setStyle(UndoBar.Style.LOLLIPOP)//
46+
.show();
47+
```
48+
3349
Download
3450
--------
3551

@@ -38,13 +54,13 @@ Grab it via Gradle:
3854
For **API Level >= 15**:
3955

4056
```groovy
41-
compile 'com.github.jenzz.undobar:library:1.2:api15Release@aar'
57+
compile 'com.github.jenzz.undobar:library:1.3:api15Release@aar'
4258
```
4359

4460
For **API Level < 15** (includes [nineoldandroids](http://nineoldandroids.com/)):
4561

4662
```groovy
47-
compile 'com.github.jenzz.undobar:library:1.2:api8Release@aar'
63+
compile 'com.github.jenzz.undobar:library:1.3:api8Release@aar'
4864
```
4965

5066
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.<br />

assets/Screenshot5.png

7.29 KB
Loading

assets/Screenshot6.png

7.62 KB
Loading

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# suppress inspection "UnusedProperty" for whole file
2-
VERSION_NAME=1.2
3-
VERSION_CODE=3
2+
VERSION_NAME=1.3
3+
VERSION_CODE=4
44
GROUP=com.github.jenzz.undobar
55

66
POM_DESCRIPTION=An implementation of Android's Undo Bar as seen in Google's Gmail app

0 commit comments

Comments
 (0)