diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-02-21 17:50:03 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-02-22 14:20:49 +0800 |
commit | 22898716834e5c08854a8ee1e71dc81a1ea8355e (patch) | |
tree | 2dd4eeb350a05aebae2f627419b8ab5cf9504f3f /res/anim | |
parent | 9ae00517d0258cffccdede80c1474fd532408a05 (diff) | |
download | LegacyCamera-22898716834e5c08854a8ee1e71dc81a1ea8355e.zip LegacyCamera-22898716834e5c08854a8ee1e71dc81a1ea8355e.tar.gz LegacyCamera-22898716834e5c08854a8ee1e71dc81a1ea8355e.tar.bz2 |
Add animation for popup windows and enable hardwareAccelerated.
Enabling hardwareAccelerated greatly improves the performance of popup windows.
bug:3446447
bug:3307722
Change-Id: I87bbabdeba63781fa8bee9aab6ca1b5cd3c0a381
Diffstat (limited to 'res/anim')
-rw-r--r-- | res/anim/grow_fade_in_from_right.xml | 30 | ||||
-rw-r--r-- | res/anim/shrink_fade_out_from_right.xml | 30 |
2 files changed, 60 insertions, 0 deletions
diff --git a/res/anim/grow_fade_in_from_right.xml b/res/anim/grow_fade_in_from_right.xml new file mode 100644 index 0000000..3c7ff01 --- /dev/null +++ b/res/anim/grow_fade_in_from_right.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/apps/common/res/anim/fade_in.xml +** +** Copyright 2011, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> + <scale android:interpolator="@android:interpolator/decelerate_quint" + android:fromXScale="0.9" android:toXScale="1.0" + android:fromYScale="0.9" android:toYScale="1.0" + android:pivotX="100%" android:pivotY="50%" + android:duration="300" /> + <alpha android:interpolator="@android:interpolator/decelerate_cubic" + android:fromAlpha="0.5" android:toAlpha="1.0" + android:duration="300" /> +</set> diff --git a/res/anim/shrink_fade_out_from_right.xml b/res/anim/shrink_fade_out_from_right.xml new file mode 100644 index 0000000..dd6c43e --- /dev/null +++ b/res/anim/shrink_fade_out_from_right.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* //device/apps/common/res/anim/fade_out.xml +** +** Copyright 2007, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> + <scale android:interpolator="@android:interpolator/decelerate_quint" + android:fromXScale="1.0" android:toXScale="0.9" + android:fromYScale="1.0" android:toYScale="0.9" + android:pivotX="100%" android:pivotY="50%" + android:duration="300" /> + <alpha android:interpolator="@android:interpolator/decelerate_cubic" + android:fromAlpha="1.0" android:toAlpha="0.0" + android:duration="300" /> +</set> |