Skip to content

Commit

Permalink
Improve Anim's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JessYanCoding committed May 7, 2018
1 parent 4713428 commit 52d70b2
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,21 @@


/**
* ================================================
* 动画工具类
* Created by jess on 27/04/2017 15:30
* Contact with jess.yan.effort@gmail.com
* <p>
* Created by JessYan on 27/04/2017 21:40
* <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
* <a href="https://github.com/JessYanCoding">Follow me</a>
* ================================================
*/

public class Anim {

public static void exit(Activity obj) {
obj.overridePendingTransition(R.anim.public_translate_left_to_center,R.anim.public_translate_center_to_right);
obj.overridePendingTransition(R.anim.public_translate_left_to_center, R.anim.public_translate_center_to_right);
}

public static void in(Activity obj) {
obj.overridePendingTransition(R.anim.public_translate_right_to_center,R.anim.public_translate_center_to_left);
obj.overridePendingTransition(R.anim.public_translate_right_to_center, R.anim.public_translate_center_to_left);
}

public static void cleanAnim(ImageView animView) {
Expand All @@ -45,5 +47,4 @@ public static void cleanAnim(ImageView animView) {
animView.clearAnimation();
animView.setVisibility(View.GONE);
}

}

0 comments on commit 52d70b2

Please sign in to comment.