From 780d102e5cee78f6a249e2c15b730575e10e775f Mon Sep 17 00:00:00 2001 From: Simonskayi <70524242+simonskayi@users.noreply.github.com> Date: Tue, 11 Oct 2022 18:02:54 +0000 Subject: [PATCH] This fixes #58 --- README.md | 49 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ef6078a..f265a69 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,8 @@ Add dependency in your app module ### Warning Toast ``` MotionToast.createToast(this,"Please fill all the details!", - MotionToastStyle.WARNING, + "Please fill all the details!" + MotionToastStyle.WARNING, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -134,7 +135,8 @@ MotionToast.createToast(this,"Please fill all the details!", ### Info Toast ``` MotionToast.createToast(this,"This is information toast!", - MotionToastStyle.INFO, + "Spikey have earned 30 Loyalty Points" + MotionToastStyle.INFO, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -143,7 +145,8 @@ MotionToast.createToast(this,"Please fill all the details!", ### Delete Toast ``` MotionToast.createToast(this,"Delete all history!", - MotionToastStyle.DELETE, + "Profile Deleted" + MotionToastStyle.DELETE, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -155,7 +158,8 @@ MotionToast.createToast(this,"Please fill all the details!", ### Success Toast ``` MotionToast.createColorToast(this,"Upload Completed!", - MotionToastStyle.SUCCESS, + "Upload Completed successfully!" + MotionToastStyle.SUCCESS, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -165,7 +169,8 @@ MotionToast.createToast(this,"Please fill all the details!", ### Error Toast ``` MotionToast.createColorToast(this,"Profile Update Failed!", - MotionToastStyle.ERROR, + "Profile Update Failed!" + MotionToastStyle.ERROR, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -173,7 +178,8 @@ MotionToast.createToast(this,"Please fill all the details!", ### Warning Toast ``` MotionToast.createColorToast(this,"Please fill all the details!", - MotionToastStyle.WARNING, + "Please fill all the details!" + MotionToastStyle.WARNING, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -184,7 +190,8 @@ MotionToast.createColorToast(this,"Please fill all the details!", ### Info Toast ``` MotionToast.createColorToast(this,"This is information toast!", - MotionToastStyle.INFO, + "Spikey have earned 30 Loyalty Points" + MotionToastStyle.INFO, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -193,7 +200,8 @@ MotionToast.createColorToast(this,"Please fill all the details!", ### Delete Toast ``` MotionToast.createColorToast(this,"Delete all history!", - MotionToastStyle.DELETE, + "Profile Deleted" + MotionToastStyle.DELETE, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -205,7 +213,8 @@ MotionToast.createColorToast(this,"Please fill all the details!", ### Success Toast ``` MotionToast.darkToast(this,"Upload Completed!", - MotionToastStyle.SUCCESS, + "Upload Completed successfully!" + MotionToastStyle.SUCCESS, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -215,7 +224,8 @@ MotionToast.createColorToast(this,"Please fill all the details!", ### Error Toast ``` MotionToast.darkToast(this,"Profile Update Failed!", - MotionToastStyle.ERROR, + "Profile Update Failed!" + MotionToastStyle.ERROR, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -223,7 +233,8 @@ MotionToast.createColorToast(this,"Please fill all the details!", ### Warning Toast ``` MotionToast.darkToast(this,"Please fill all the details!", - MotionToastStyle.WARNING, + "Please fill all the details!" + MotionToastStyle.WARNING, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -234,7 +245,8 @@ MotionToast.darkToast(this,"Please fill all the details!", ### Info Toast ``` MotionToast.darkToast(this,"This is information toast!", - MotionToastStyle.INFO, + "Spikey have earned 30 Loyalty Points" + MotionToastStyle.INFO, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -243,7 +255,8 @@ MotionToast.darkToast(this,"Please fill all the details!", ### Delete Toast ``` MotionToast.darkToast(this,"Delete all history!", - MotionToastStyle.DELETE, + "Profile Deleted" + MotionToastStyle.DELETE, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -265,6 +278,7 @@ MotionToast.darkToast(this,"Please fill all the details!", ### Error Toast ``` MotionToast.darkColorToast(this,"Profile Update Failed!", + "Profile Update Failed!" MotionToastStyle.ERROR, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, @@ -273,7 +287,8 @@ MotionToast.darkToast(this,"Please fill all the details!", ### Warning Toast ``` MotionToast.darkColorToast(this,"Please fill all the details!", - MotionToastStyle.WARNING, + "Please fill all the details!" + MotionToastStyle.WARNING, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -284,7 +299,8 @@ MotionToast.darkColorToast(this,"Please fill all the details!", ### Info Toast ``` MotionToast.darkColorToast(this,"This is information toast!", - MotionToastStyle.INFO, + "Spikey have earned 30 Loyalty Points" + MotionToastStyle.INFO, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular)) @@ -293,7 +309,8 @@ MotionToast.darkColorToast(this,"Please fill all the details!", ### Delete Toast ``` MotionToast.darkColorToast(this,"Delete all history!", - MotionToastStyle.DELETE, + "Delete all history!" + MotionToastStyle.DELETE, MotionToast.GRAVITY_BOTTOM, MotionToast.LONG_DURATION, ResourcesCompat.getFont(this,R.font.helvetica_regular))