File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
magic/src/main/java/br/com/bloder/magic Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
import android .view .View ;
4
4
5
- import br .com .bloder .magic .internal .Back ;
6
- import br .com .bloder .magic .internal .Go ;
5
+ import br .com .bloder .magic .internal .MagicAnimation ;
7
6
8
7
/**
9
8
* Created by bloder on 28/07/16.
10
9
*/
11
10
public class Magic {
12
11
13
12
public void doWith (View button ) {
14
- if (button .getWidth () == button .getHeight ()) {
15
- Go animator = new Go (button );
16
- animator .setDuration (200 );
17
- button .startAnimation (animator );
18
- } else {
19
- Back animator = new Back (button );
20
- animator .setDuration (200 );
21
- button .startAnimation (animator );
22
- }
13
+ MagicAnimation animator = new MagicAnimation (button );
14
+ animator .setDuration (200 );
15
+ button .startAnimation (animator );
23
16
}
24
17
}
You can’t perform that action at this time.
0 commit comments