summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2017-03-03 14:57:14 -0800
committerJon Miranda <jonmiranda@google.com>2017-03-06 16:25:54 -0800
commit471701162642d4cbfc5cebdd448e9a7af4c7c51f (patch)
treebe7164f3e8364c15066a99ba360e20d949b12ca9 /res
parentdec75d5adda54d48d195f76a9ab31c09de2e2848 (diff)
downloadandroid_packages_apps_Trebuchet-471701162642d4cbfc5cebdd448e9a7af4c7c51f.tar.gz
android_packages_apps_Trebuchet-471701162642d4cbfc5cebdd448e9a7af4c7c51f.tar.bz2
android_packages_apps_Trebuchet-471701162642d4cbfc5cebdd448e9a7af4c7c51f.zip
New folder animations.
Added FolderAnimationManager, which manages the opening and closing animations. All of the animations are done in the Folder. ie. When the users taps on the FolderIcon, we immediately hide the FolderIcon and show the Folder inits place before starting the animation. Bug: 35064148 Change-Id: Icacdbbf78a25489f2eab4fd352f2c6ed71eb710b
Diffstat (limited to 'res')
-rw-r--r--res/interpolator/folder_closing_interpolator.xml24
-rw-r--r--res/interpolator/folder_opening_interpolator.xml24
2 files changed, 48 insertions, 0 deletions
diff --git a/res/interpolator/folder_closing_interpolator.xml b/res/interpolator/folder_closing_interpolator.xml
new file mode 100644
index 000000000..e6e012eda
--- /dev/null
+++ b/res/interpolator/folder_closing_interpolator.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+
+<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
+ android:controlX1="0.8"
+ android:controlY1="0"
+ android:controlX2="0.8"
+ android:controlY2="1"/>
diff --git a/res/interpolator/folder_opening_interpolator.xml b/res/interpolator/folder_opening_interpolator.xml
new file mode 100644
index 000000000..b95d4548f
--- /dev/null
+++ b/res/interpolator/folder_opening_interpolator.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2017, 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.
+*/
+-->
+
+<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
+ android:controlX1="0.2"
+ android:controlY1="0"
+ android:controlX2="0"
+ android:controlY2="1"/>