summaryrefslogtreecommitdiffstats
path: root/res/interpolator
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2017-03-08 12:22:34 -0800
committerJon Miranda <jonmiranda@google.com>2017-03-08 12:22:34 -0800
commit5f3f4d428021ce1a21a9fba4c681ec9ec2ccdf37 (patch)
treedce740f4900f5648ab4f2b4aabca028ad196331d /res/interpolator
parent88c07e5b8157fc806ac80fb984559813cba1e4bf (diff)
downloadandroid_packages_apps_Trebuchet-5f3f4d428021ce1a21a9fba4c681ec9ec2ccdf37.tar.gz
android_packages_apps_Trebuchet-5f3f4d428021ce1a21a9fba4c681ec9ec2ccdf37.tar.bz2
android_packages_apps_Trebuchet-5f3f4d428021ce1a21a9fba4c681ec9ec2ccdf37.zip
Added new interpolators for preview items in large folders.
With larger folders, we want the preview items to reach their final positions faster (when opening) and later (when closing) so that they appear aligned with the rest of the folder items when they are both visible. Bug: 35064148 Change-Id: I170ac2db36a3a20ebe5505711ea59e625050bc1b
Diffstat (limited to 'res/interpolator')
-rw-r--r--res/interpolator/folder_preview_item_closing_interpolator.xml24
-rw-r--r--res/interpolator/folder_preview_item_opening_interpolator.xml24
2 files changed, 48 insertions, 0 deletions
diff --git a/res/interpolator/folder_preview_item_closing_interpolator.xml b/res/interpolator/folder_preview_item_closing_interpolator.xml
new file mode 100644
index 000000000..1d77081e5
--- /dev/null
+++ b/res/interpolator/folder_preview_item_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="1"
+ android:controlY1="0"
+ android:controlX2="1"
+ android:controlY2="0"/>
diff --git a/res/interpolator/folder_preview_item_opening_interpolator.xml b/res/interpolator/folder_preview_item_opening_interpolator.xml
new file mode 100644
index 000000000..dcf01579b
--- /dev/null
+++ b/res/interpolator/folder_preview_item_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"
+ android:controlY1="1"
+ android:controlX2="0"
+ android:controlY2="1"/>