7
7
/**
8
8
* Modify by lee on 2014/7/30.
9
9
* https://github.com/sd6352051/NiftyDialogEffects
10
- *
10
+ * <p>
11
11
* The MIT License (MIT)
12
- *
12
+ * <p>
13
13
* Copyright (c) 2014 daimajia
14
- *
14
+ * <p>
15
15
* Permission is hereby granted, free of charge, to any person obtaining a copy
16
16
* of this software and associated documentation files (the "Software"), to deal
17
17
* in the Software without restriction, including without limitation the rights
18
18
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
19
* copies of the Software, and to permit persons to whom the Software is
20
20
* furnished to do so, subject to the following conditions:
21
- *
21
+ * <p>
22
22
* The above copyright notice and this permission notice shall be included in all
23
23
* copies or substantial portions of the Software.
24
- *
24
+ * <p>
25
25
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
26
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
27
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
28
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
29
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
30
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
31
* SOFTWARE.
32
- *
32
+ * <p>
33
33
* Acknowledgements daimajia
34
34
* https://github.com/daimajia
35
35
*/
36
- public abstract class BaseEffects {
36
+ public abstract class BaseEffects {
37
37
38
- private static final int DURATION = 1 * 700 ;
38
+ private static final int DURATION = 700 ;
39
39
40
- protected long mDuration =DURATION ;
40
+ protected long mDuration = DURATION ;
41
41
42
42
private AnimatorSet mAnimatorSet ;
43
43
@@ -52,7 +52,8 @@ public void start(View view) {
52
52
setupAnimation (view );
53
53
mAnimatorSet .start ();
54
54
}
55
- public void reset (View view ) {
55
+
56
+ private void reset (View view ) {
56
57
view .setPivotX (view .getMeasuredWidth () / 2.0f );
57
58
view .setPivotY (view .getMeasuredHeight () / 2.0f );
58
59
}
@@ -61,7 +62,7 @@ public void reset(View view) {
61
62
public AnimatorSet getAnimatorSet () {
62
63
return mAnimatorSet ;
63
64
}
64
-
65
+
65
66
public void setDuration (long duration ) {
66
67
this .mDuration = duration ;
67
68
}
0 commit comments