Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/GrenderG/Toasty
Browse files Browse the repository at this point in the history
  • Loading branch information
GrenderG committed Apr 28, 2017
2 parents 6489283 + f3584df commit 3d294c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add this to your module's `build.gradle` file (make sure the version matches the
```gradle
dependencies {
...
compile 'com.github.GrenderG:Toasty:1.2.0'
compile 'com.github.GrenderG:Toasty:1.2.1'
}
```

Expand All @@ -40,10 +40,17 @@ Toasty.Config.getInstance()
.setSuccessColor(@ColorInt int successColor) // optional
.setWarningColor(@ColorInt int warningColor) // optional
.setTextColor(@ColorInt int textColor) // optional
.tintIcon(boolean tintIcon) // optional (apply textColor also to the icon)
.setToastTypeface(AssetManager assetManager, String fontPath) // optional
.apply(); // required
```

You can reset the configuration by using `reset()` method:

```java
Toasty.Config.reset();
```

## Usage

Each method always returns a `Toast` object, so you can customize the Toast much more. **DON'T FORGET THE `show()` METHOD!**
Expand Down

0 comments on commit 3d294c4

Please sign in to comment.