From: Bobby Georgescu Date: Sun, 30 Sep 2012 19:57:45 +0000 (-0700) Subject: Update FX/pano button appearance, placement, animation X-Git-Tag: android-x86-7.1-r1~1268^2~347 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0aaf8fb8;p=android-x86%2Fpackages-apps-Gallery2.git Update FX/pano button appearance, placement, animation Bug: 7213162 Bug: 7233446 Change-Id: Ief62e3f17ee08999a23656217dcf39bb91421d1e --- 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; }