diff options
author | Owen Lin <owenlin@google.com> | 2009-09-14 19:04:37 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2009-09-17 16:46:55 +0800 |
commit | c1f2e3021bf7b12f2a33561e09bd0ab32530382e (patch) | |
tree | 3bdf5eb09893e3fd39d9af8e64dcefc1a41e7abf /src/com/android/camera/Util.java | |
parent | 83c371d93f9513d317fcabb5783cce5091274c34 (diff) | |
download | LegacyCamera-c1f2e3021bf7b12f2a33561e09bd0ab32530382e.zip LegacyCamera-c1f2e3021bf7b12f2a33561e09bd0ab32530382e.tar.gz LegacyCamera-c1f2e3021bf7b12f2a33561e09bd0ab32530382e.tar.bz2 |
Implement the drawer UI. When user click on the drawer button, the
on-screen settings will show up.
Change-Id: I86a587969a9a01d62560e21d457d3639841ba6da
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) { |