Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/emrekotun/CpmToast
Browse files Browse the repository at this point in the history
  • Loading branch information
emrekotun34 committed Nov 1, 2021
2 parents b3cf754 + 3e19057 commit add3e65
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,61 @@
# CpmToast
# CpmToast
Perfect Toast Messages

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
```
CpmToast.createColorToast(
this,
"Success !",
CpmToast.TOAST_SUCCESS,
CpmToast.GRAVITY_TOP,
CpmToast.LONG_DURATION
)
```
Error Toast
```
CpmToast.createColorToast(
this,
"Error !",
CpmToast.TOAST_ERROR,
CpmToast.GRAVITY_TOP,
CpmToast.LONG_DURATION
)
```
Warning Toast
```
CpmToast.createColorToast(
this,
"Warning !",
CpmToast.TOAST_WARNING,
CpmToast.GRAVITY_TOP,
CpmToast.LONG_DURATION
)
```
Info Toast
```
CpmToast.createColorToast(
this,
"Info !",
CpmToast.TOAST_INFO,
CpmToast.GRAVITY_TOP,
CpmToast.LONG_DURATION
)
```

0 comments on commit add3e65

Please sign in to comment.