summaryrefslogtreecommitdiffstats
path: root/res/anim
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-11-09 00:08:42 -0800
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:00:40 +0200
commitaa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c (patch)
tree6bd03d6ff4f7fcb7053808cb437f7abe0779f628 /res/anim
parent13ca178c2f1c614bc6c615b29986fc6002a89d5a (diff)
downloadandroid_packages_apps_Snap-aa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c.tar.gz
android_packages_apps_Snap-aa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c.tar.bz2
android_packages_apps_Snap-aa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c.zip
snap: UX improvements v1
* Make the camera controls do sane things- get rid of the manual placement of every widget and use layouts * Animate everything correctly * Show ripples when clicking the shutter * Clean up a metric ton of dead code * Moved more code into BaseUI * Make setting up the camera controls less verbose and magical * Fixed up panorama layout Change-Id: Iaed44ca0201a2e2641e1c2460d3ff9ec3eae2d85
Diffstat (limited to 'res/anim')
-rw-r--r--res/anim/switcher_enter.xml18
-rw-r--r--res/anim/switcher_exit.xml18
2 files changed, 36 insertions, 0 deletions
diff --git a/res/anim/switcher_enter.xml b/res/anim/switcher_enter.xml
new file mode 100644
index 000000000..91653a25b
--- /dev/null
+++ b/res/anim/switcher_enter.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2009, 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.
+-->
+<alpha xmlns:android="http://schemas.android.com/apk/res/android"
+ android:interpolator="@android:anim/decelerate_interpolator"
+ android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="400" />
diff --git a/res/anim/switcher_exit.xml b/res/anim/switcher_exit.xml
new file mode 100644
index 000000000..252581608
--- /dev/null
+++ b/res/anim/switcher_exit.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2009, 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.
+-->
+<alpha xmlns:android="http://schemas.android.com/apk/res/android"
+ android:interpolator="@android:anim/accelerate_interpolator"
+ android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="400" />