Skip to content

Commit 7fdbd54

Browse files
committed
Merge branch 'master' of https://github.com/Pierry/SimpleToast
2 parents a2c8834 + 0c6665b commit 7fdbd54

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ SimpleToast
44
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SimpleToast-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1031)
55
![](https://img.shields.io/github/tag/Pierry/SimpleToast.svg?label=maven)
66

7-
Notifications for Android (like a Toast)
7+
Notifications for Android (like a Toast)
88

9-
Current version: 1.01
9+
Current version: v1.4
1010

1111
Example
1212
===========
1313
![alt tag](https://raw.githubusercontent.com/Pierry/SimpleToast/master/screentshots/cancel.png)
1414
![alt tag](https://raw.githubusercontent.com/Pierry/SimpleToast/master/screentshots/ok.png)
15+
![alt tag](https://raw.githubusercontent.com/Pierry/SimpleToast/master/screentshots/info.png)
16+
![alt tag](https://raw.githubusercontent.com/Pierry/SimpleToast/master/screentshots/muted.png)
1517

1618

1719
Gradle
@@ -24,22 +26,33 @@ Into your build.gradle:
2426
}
2527

2628
dependencies {
27-
compile 'com.github.Pierry:SimpleToast:v1.01'
29+
compile 'com.github.Pierry:SimpleToast:v1.4'
2830
}
2931

30-
Ref. https://jitpack.io/#Pierry/SimpleToast/v1.01
32+
Ref. https://jitpack.io/#Pierry/SimpleToast/v1.4
3133

3234
Usage
3335
=============
3436

3537
The API is kept as simple as the Toast API:
3638

37-
Create a SimpleToast for any CharSequence:
39+
Create a SimpleToast for any CharSequence with default icon:
3840

3941
SimpleToast.ok(Context, CharSequence);
4042
SimpleToast.error(Context, CharSequence);
4143
SimpleToast.info(Context, CharSequence);
42-
44+
SimpleToast.muted(Context, CharSequence);
45+
46+
Using [Font Awesome](http://fortawesome.github.io/Font-Awesome/icons/):
47+
48+
SimpleToast.ok(Context, CharSequence, "{fa-home}");
49+
SimpleToast.error(Context, CharSequence, "{fa-user}");
50+
SimpleToast.info(Context, CharSequence, "{fa-check-square}");
51+
SimpleToast.muted(Context, CharSequence, "{fa-github}");
52+
53+
Use this link for icons:
54+
http://fortawesome.github.io/Font-Awesome/icons/
55+
4356
Questions
4457
==========
4558
Questions regarding SimpleToast can be asked on [StackOverflow, using the simpletoast tag](http://stackoverflow.com/questions/tagged/simpletoast).

0 commit comments

Comments
 (0)