summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2018-01-27 01:29:43 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-01-27 01:29:43 +0000
commit4a24b57f0e25286eb04c86461d80dcf2bda56950 (patch)
tree940e1655121a434afa6cda32d9bd009a435fb0b5
parentce01bd906e6153ff5458fee7a7e855d73855ac0a (diff)
parent606c6aba7560c9bf873f27589afef4f81ff22fd5 (diff)
Merge "Tweak and rename new ease curve"
-rw-r--r--api/current.txt1
-rw-r--r--core/res/res/anim/activity_close_exit.xml4
-rw-r--r--core/res/res/anim/activity_open_enter.xml4
-rw-r--r--core/res/res/interpolator/emphasized_deceleration.xml22
-rw-r--r--core/res/res/interpolator/fast_out_extra_slow_in.xml (renamed from core/res/res/interpolator/exaggerated_ease.xml)2
-rw-r--r--core/res/res/values/public.xml3
6 files changed, 9 insertions, 27 deletions
diff --git a/api/current.txt b/api/current.txt
index 2b6da9f5652a..9fee9ed23e13 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -1902,6 +1902,7 @@ package android {
field public static final int decelerate_cubic = 17563651; // 0x10c0003
field public static final int decelerate_quad = 17563649; // 0x10c0001
field public static final int decelerate_quint = 17563653; // 0x10c0005
+ field public static final int fast_out_extra_slow_in = 17563674; // 0x10c001a
field public static final int fast_out_linear_in = 17563663; // 0x10c000f
field public static final int fast_out_slow_in = 17563661; // 0x10c000d
field public static final int linear = 17563659; // 0x10c000b
diff --git a/core/res/res/anim/activity_close_exit.xml b/core/res/res/anim/activity_close_exit.xml
index 143bedb985e1..d87f1003def5 100644
--- a/core/res/res/anim/activity_close_exit.xml
+++ b/core/res/res/anim/activity_close_exit.xml
@@ -34,11 +34,11 @@
android:toTop="95.9%"
android:toRight="100%"
android:toBottom="100%"
- android:interpolator="@interpolator/exaggerated_ease"
+ android:interpolator="@interpolator/fast_out_extra_slow_in"
android:duration="425"/>
<alpha
android:fromAlpha="1.0"
android:toAlpha="1.0"
android:interpolator="@interpolator/fast_out_linear_in"
android:duration="425"/>
-</set> \ No newline at end of file
+</set>
diff --git a/core/res/res/anim/activity_open_enter.xml b/core/res/res/anim/activity_open_enter.xml
index f9381b458c20..cb0307026e2f 100644
--- a/core/res/res/anim/activity_open_enter.xml
+++ b/core/res/res/anim/activity_open_enter.xml
@@ -32,6 +32,6 @@
android:toTop="0%"
android:toRight="100%"
android:toBottom="100%"
- android:interpolator="@interpolator/exaggerated_ease"
+ android:interpolator="@interpolator/fast_out_extra_slow_in"
android:duration="425"/>
-</set> \ No newline at end of file
+</set>
diff --git a/core/res/res/interpolator/emphasized_deceleration.xml b/core/res/res/interpolator/emphasized_deceleration.xml
deleted file mode 100644
index 60c315c0c4d4..000000000000
--- a/core/res/res/interpolator/emphasized_deceleration.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright (C) 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.1"
- android:controlY1="0.8"
- android:controlX2="0.2"
- android:controlY2="1"/> \ No newline at end of file
diff --git a/core/res/res/interpolator/exaggerated_ease.xml b/core/res/res/interpolator/fast_out_extra_slow_in.xml
index 4961c1c72984..f16057417a63 100644
--- a/core/res/res/interpolator/exaggerated_ease.xml
+++ b/core/res/res/interpolator/fast_out_extra_slow_in.xml
@@ -16,4 +16,4 @@
-->
<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
- android:pathData="M 0,0 C 0.05, 0, 0.133333, 0.08, 0.166666, 0.4 C 0.225, 0.94, 0.25, 1, 1, 1"/>
+ android:pathData="M 0,0 C 0.05, 0, 0.133333, 0.06, 0.166666, 0.4 C 0.208333, 0.82, 0.25, 1, 1, 1"/>
diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml
index 80fc5db5d435..30586d17cf3c 100644
--- a/core/res/res/values/public.xml
+++ b/core/res/res/values/public.xml
@@ -2881,6 +2881,9 @@
<public-group type="string" first-id="0x0104001b">
</public-group>
+ <!-- An interpolator which accelerates fast but decelerates extra slowly. -->
+ <public type="interpolator" name="fast_out_extra_slow_in" id="0x10c001a"/>
+
<!-- ===============================================================
DO NOT ADD UN-GROUPED ITEMS HERE