@@ -2,27 +2,27 @@ package com.mrprogrammer.customtoast
2
2
3
3
import android.app.Activity
4
4
5
- fun success (activity : Activity , message : String , duration : Int , gravity : Int ) {
6
- HeadToast (activity, message, duration, gravity, R .drawable.checked,R .color.success_left,R .color.success)
5
+ fun success (activity : Activity , message : String , duration : Int ) {
6
+ HeadToast (activity, message, duration,R .drawable.checked,R .color.success_left,R .color.success)
7
7
}
8
8
9
9
10
10
11
- fun warning (activity : Activity , message : String , duration : Int , gravity : Int ) {
12
- HeadToast (activity, message, duration, gravity, R .drawable.alert,R .color.warning_left,R .color.warning)
11
+ fun warning (activity : Activity , message : String , duration : Int ) {
12
+ HeadToast (activity, message, duration,R .drawable.alert,R .color.warning_left,R .color.warning)
13
13
}
14
14
15
15
16
16
17
- fun information (activity : Activity , message : String , duration : Int , gravity : Int ) {
18
- HeadToast (activity, message, duration, gravity, R .drawable.information,R .color.information_left,R .color.information)
17
+ fun information (activity : Activity , message : String , duration : Int ) {
18
+ HeadToast (activity, message, duration, R .drawable.information,R .color.information_left,R .color.information)
19
19
}
20
20
21
21
22
- fun error (activity : Activity , message : String , duration : Int , gravity : Int ) {
23
- HeadToast (activity, message, duration, gravity, R .drawable.error,R .color.error_left,R .color.error)
22
+ fun error (activity : Activity , message : String , duration : Int ) {
23
+ HeadToast (activity, message, duration, R .drawable.error,R .color.error_left,R .color.error)
24
24
}
25
25
26
- fun message (activity : Activity , message : String , duration : Int , gravity : Int ) {
27
- HeadToast (activity, message, duration, gravity, R .drawable.message,R .color.message_left,R .color.message)
26
+ fun message (activity : Activity , message : String , duration : Int ) {
27
+ HeadToast (activity, message, duration, R .drawable.message,R .color.message_left,R .color.message)
28
28
}
0 commit comments