From 8e2d1cd8fc76b83659a0c837b45f2afa17e26517 Mon Sep 17 00:00:00 2001 From: Emre Kotun Date: Thu, 28 Oct 2021 17:39:03 +0300 Subject: [PATCH 1/4] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ba5480..e0288ba 100644 --- a/README.md +++ b/README.md @@ -1 +1,13 @@ -# CpmToast \ No newline at end of file +# CpmToast + +![github_cover](https://user-images.githubusercontent.com/22660204/139278582-9a00616f-bb18-4732-a0ba-75b27220d668.png) + +``` + CpmToast.createColorToast( + this, + "Success !", + CpmToast.TOAST_SUCCESS, + CpmToast.GRAVITY_TOP, + CpmToast.LONG_DURATION + ) +``` From ff8da827bc2cd4c588f7b1dbf49e511c34c72e89 Mon Sep 17 00:00:00 2001 From: Emre Kotun Date: Thu, 28 Oct 2021 17:43:37 +0300 Subject: [PATCH 2/4] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index e0288ba..ca7103a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,23 @@ # CpmToast +implementation +build.gradle +``` +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } + } +``` +``` + implementation 'com.github.emrekotun:CpmToast:v1.0.1' +``` + ![github_cover](https://user-images.githubusercontent.com/22660204/139278582-9a00616f-bb18-4732-a0ba-75b27220d668.png) ``` +// Success CpmToast.createColorToast( this, "Success !", @@ -10,4 +25,29 @@ CpmToast.GRAVITY_TOP, CpmToast.LONG_DURATION ) + +// Error + CpmToast.createColorToast( + this, + "Error !", + CpmToast.TOAST_ERROR, + CpmToast.GRAVITY_TOP, + CpmToast.LONG_DURATION + ) +// Warning + CpmToast.createColorToast( + this, + "Warning !", + CpmToast.TOAST_WARNING, + CpmToast.GRAVITY_TOP, + CpmToast.LONG_DURATION + ) + // Info + CpmToast.createColorToast( + this, + "Info !", + CpmToast.TOAST_INFO, + CpmToast.GRAVITY_TOP, + CpmToast.LONG_DURATION + ) ``` From 5c7f7c63415473234dc6906d86f75a9d9a75b62a Mon Sep 17 00:00:00 2001 From: Emre Kotun Date: Mon, 1 Nov 2021 09:28:46 +0300 Subject: [PATCH 3/4] Update README.md --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ca7103a..001a6e3 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,22 @@ implementation build.gradle ``` allprojects { - repositories { - ... - maven { url 'https://jitpack.io' } - } + repositories { + ... + maven { url "https://jitpack.io" } } +} + ``` ``` - implementation 'com.github.emrekotun:CpmToast:v1.0.1' -``` - -![github_cover](https://user-images.githubusercontent.com/22660204/139278582-9a00616f-bb18-4732-a0ba-75b27220d668.png) +dependencies { + implementation 'com.github.GrenderG:Toasty:1.5.2' +} ``` -// Success +![normal_tos](https://user-images.githubusercontent.com/22660204/139630691-63be6d16-091f-481d-a873-3f9c936cafd4.png) +``` +// Success Toast CpmToast.createColorToast( this, "Success !", From 3e19057799bd1f0a42ddc7ff1ce7e3f461984af0 Mon Sep 17 00:00:00 2001 From: Emre Kotun Date: Mon, 1 Nov 2021 09:35:27 +0300 Subject: [PATCH 4/4] Update README.md --- README.md | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 001a6e3..be4788e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # CpmToast +Perfect Toast Messages -implementation -build.gradle +Add this in your root build.gradle : ``` allprojects { repositories { @@ -9,26 +9,28 @@ allprojects { 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) + +Usage

+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 !", @@ -36,7 +38,9 @@ dependencies { CpmToast.GRAVITY_TOP, CpmToast.LONG_DURATION ) -// Warning + ``` +Warning Toast + ``` CpmToast.createColorToast( this, "Warning !", @@ -44,7 +48,9 @@ dependencies { CpmToast.GRAVITY_TOP, CpmToast.LONG_DURATION ) - // Info + ``` +Info Toast +``` CpmToast.createColorToast( this, "Info !",