diff options
Diffstat (limited to 'src/com/android/camera/Util.java')
-rw-r--r-- | src/com/android/camera/Util.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java index da9caf6..c4dff80 100644 --- a/src/com/android/camera/Util.java +++ b/src/com/android/camera/Util.java @@ -539,7 +539,7 @@ public class Util { .show(); } - public static void slideOut(View view, int to) { + public static Animation slideOut(View view, int to) { view.setVisibility(View.INVISIBLE); Animation anim; switch (to) { @@ -560,9 +560,10 @@ public class Util { } anim.setDuration(500); view.startAnimation(anim); + return anim; } - public static void slideIn(View view, int from) { + public static Animation slideIn(View view, int from) { view.setVisibility(View.VISIBLE); Animation anim; switch (from) { @@ -583,6 +584,7 @@ public class Util { } anim.setDuration(500); view.startAnimation(anim); + return anim; } public static <T> T checkNotNull(T object) { |