From 0aaf8fb8b86cbf6353937c12f377ad524661c553 Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Sun, 30 Sep 2012 12:57:45 -0700 Subject: [PATCH] Update FX/pano button appearance, placement, animation Bug: 7213162 Bug: 7233446 Change-Id: Ief62e3f17ee08999a23656217dcf39bb91421d1e --- res/drawable/photopage_bottom_button_background.xml | 5 +++++ res/layout/photopage_bottom_controls.xml | 21 +++++++++++++++++---- res/values/colors.xml | 2 ++ .../gallery3d/app/PhotoPageBottomControls.java | 4 ++-- 4 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 res/drawable/photopage_bottom_button_background.xml diff --git a/res/drawable/photopage_bottom_button_background.xml b/res/drawable/photopage_bottom_button_background.xml new file mode 100644 index 000000000..0c772ad21 --- /dev/null +++ b/res/drawable/photopage_bottom_button_background.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/res/layout/photopage_bottom_controls.xml b/res/layout/photopage_bottom_controls.xml index a8fca2d72..5b80cf2da 100644 --- a/res/layout/photopage_bottom_controls.xml +++ b/res/layout/photopage_bottom_controls.xml @@ -1,6 +1,7 @@ - - + diff --git a/res/values/colors.xml b/res/values/colors.xml index 10f5b6303..705748c2b 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -38,4 +38,6 @@ #333 #1A1A1A + + #6000 diff --git a/src/com/android/gallery3d/app/PhotoPageBottomControls.java b/src/com/android/gallery3d/app/PhotoPageBottomControls.java index 8ba4818db..40588e128 100644 --- a/src/com/android/gallery3d/app/PhotoPageBottomControls.java +++ b/src/com/android/gallery3d/app/PhotoPageBottomControls.java @@ -51,8 +51,8 @@ public class PhotoPageBottomControls implements OnClickListener { private static final int CONTROL_ANIM_DURATION_MS = 150; private static Animation getControlAnimForVisibility(boolean visible) { - Animation anim = visible ? new ScaleAnimation(0, 1, 1, 1) - : new ScaleAnimation(1, 0, 1, 1); + Animation anim = visible ? new AlphaAnimation(0f, 1f) + : new AlphaAnimation(1f, 0f); anim.setDuration(CONTROL_ANIM_DURATION_MS); return anim; } -- 2.11.0