Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emrekotun authored Nov 1, 2021
1 parent 5c7f7c6 commit 3e19057
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,56 @@
# CpmToast
Perfect Toast Messages

implementation
build.gradle
Add this in your root build.gradle :
```
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
Add this to your module's build.gradle
```
dependencies {
implementation 'com.github.GrenderG:Toasty:1.5.2'
}
```
![normal_tos](https://user-images.githubusercontent.com/22660204/139630691-63be6d16-091f-481d-a873-3f9c936cafd4.png)

<b>Usage</b> <br/><br/>
Success Toast
```
// Success Toast
CpmToast.createColorToast(
CpmToast.createColorToast(
this,
"Success !",
CpmToast.TOAST_SUCCESS,
CpmToast.GRAVITY_TOP,
CpmToast.LONG_DURATION
)
// Error
```
Error Toast
```
CpmToast.createColorToast(
this,
"Error !",
CpmToast.TOAST_ERROR,
CpmToast.GRAVITY_TOP,
CpmToast.LONG_DURATION
)
// Warning
```
Warning Toast
```
CpmToast.createColorToast(
this,
"Warning !",
CpmToast.TOAST_WARNING,
CpmToast.GRAVITY_TOP,
CpmToast.LONG_DURATION
)
// Info
```
Info Toast
```
CpmToast.createColorToast(
this,
"Info !",
Expand Down

0 comments on commit 3e19057

Please sign in to comment.