Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 33 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -165,15 +169,17 @@ 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))
```
### 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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -215,15 +224,17 @@ 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))
```
### 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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -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,
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand Down