diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-21 17:32:43 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-07-21 17:32:43 -0700 |
commit | c001cf562017d08cd48b67de8f377ca08881e70e (patch) | |
tree | 5509e5ea66ae98d0008e13a4929e4ee5138df3ba /res | |
parent | 1ce0e30451f28e6e5c42c068d520e16abeb257dd (diff) | |
download | android_packages_apps_Trebuchet-c001cf562017d08cd48b67de8f377ca08881e70e.tar.gz android_packages_apps_Trebuchet-c001cf562017d08cd48b67de8f377ca08881e70e.tar.bz2 android_packages_apps_Trebuchet-c001cf562017d08cd48b67de8f377ca08881e70e.zip |
Animate discovery bounce for all apps pull up interaction
b/30221381
> Will not support landscape case. If the user knows how to enable
rotation, it's very unlikely they don't know how to bring up apps drawer
> If unlocked using finger unlock immediately after screen is turned
off, bounce is not shown due to delay in ACTION_SCREEN_OFF broadcast
Change-Id: Ia8b7e572eaa4aeab8b1add1e5660fee3a63ba21c
Diffstat (limited to 'res')
-rw-r--r-- | res/anim/discovery_bounce.xml | 45 | ||||
-rw-r--r-- | res/interpolator/disco_bounce_section1.xml | 22 | ||||
-rw-r--r-- | res/interpolator/disco_bounce_section2.xml | 22 | ||||
-rw-r--r-- | res/interpolator/disco_bounce_section3.xml | 22 |
4 files changed, 111 insertions, 0 deletions
diff --git a/res/anim/discovery_bounce.xml b/res/anim/discovery_bounce.xml new file mode 100644 index 000000000..1f7d46618 --- /dev/null +++ b/res/anim/discovery_bounce.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2016, 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:ordering="sequentially" + android:startOffset="200"> + + <objectAnimator + android:propertyName="progress" + android:duration="250" + android:interpolator="@interpolator/disco_bounce_section1" + android:valueFrom="1f" + android:valueTo=".94f" + android:valueType="floatType"/> + <objectAnimator + android:propertyName="progress" + android:duration="216" + android:interpolator="@interpolator/disco_bounce_section2" + android:valueFrom=".94f" + android:valueTo="1.012f" + android:valueType="floatType"/> + <objectAnimator + android:propertyName="progress" + android:duration="234" + android:interpolator="@interpolator/disco_bounce_section3" + android:valueFrom="1.012f" + android:valueTo="1f" + android:valueType="floatType"/> +</set> diff --git a/res/interpolator/disco_bounce_section1.xml b/res/interpolator/disco_bounce_section1.xml new file mode 100644 index 000000000..21562165c --- /dev/null +++ b/res/interpolator/disco_bounce_section1.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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.9" + android:controlY1="0" + android:controlX2="0.5" + android:controlY2="1"/> diff --git a/res/interpolator/disco_bounce_section2.xml b/res/interpolator/disco_bounce_section2.xml new file mode 100644 index 000000000..86cc789fe --- /dev/null +++ b/res/interpolator/disco_bounce_section2.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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.9" + android:controlY1="0" + android:controlX2="0.6" + android:controlY2="1"/> diff --git a/res/interpolator/disco_bounce_section3.xml b/res/interpolator/disco_bounce_section3.xml new file mode 100644 index 000000000..1acef037c --- /dev/null +++ b/res/interpolator/disco_bounce_section3.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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" + android:controlX2="0.7" + android:controlY2="1"/> |