Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40a22733 authored by Winson's avatar Winson
Browse files

Minor tweak to enter/exit animation for the home activity.

- Fixing issue where the animation props was not applied to the progress
  and callback animations correctly
- Ensuring that all tasks animate the same distance on enter/exit, and 
  not just to the edge of the screen
- Removing unused styles and animation resources

Change-Id: I88bd0f79f386304373fe63b49e92f02eeb882e55
parent 823441a7
Loading
Loading
Loading
Loading
+0 −28
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2012, 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.
*/
-->
<!-- Recents Activity -->
<set xmlns:android="http://schemas.android.com/apk/res/android"
     android:shareInterpolator="false"
     android:zAdjustment="top">
  <alpha android:fromAlpha="1.0" android:toAlpha="1.0"
         android:fillEnabled="true"
         android:fillBefore="true" android:fillAfter="true"
         android:interpolator="@android:interpolator/fast_out_slow_in"
         android:duration="0"/>
</set>
+0 −30
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2012, 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.
*/
-->
<!-- Incoming Activity -->
<set xmlns:android="http://schemas.android.com/apk/res/android"
     android:shareInterpolator="false"
     android:zAdjustment="normal">

    <!-- Animate the view out only after recents is visible -->
    <alpha android:fromAlpha="1.0" android:toAlpha="0.0"
           android:fillEnabled="true"
           android:fillBefore="true" android:fillAfter="true"
           android:interpolator="@android:interpolator/fast_out_slow_in"
           android:duration="1"/>
</set>
+1 −1
Original line number Diff line number Diff line
@@ -23,6 +23,6 @@
  <alpha android:fromAlpha="0.0" android:toAlpha="1.0"
         android:fillEnabled="true"
         android:fillBefore="true" android:fillAfter="true"
         android:interpolator="@android:interpolator/linear"
         android:interpolator="@android:interpolator/linear_out_slow_in"
         android:duration="150"/>
</set>
+2 −2
Original line number Diff line number Diff line
@@ -23,6 +23,6 @@
  <alpha android:fromAlpha="1.0" android:toAlpha="0.0"
         android:fillEnabled="true"
         android:fillBefore="true" android:fillAfter="true"
         android:interpolator="@android:interpolator/linear_out_slow_in"
         android:duration="150"/>
         android:interpolator="@interpolator/recents_from_launcher_exit_interpolator"
         android:duration="133"/>
</set>
+2 −2
Original line number Diff line number Diff line
@@ -23,6 +23,6 @@
  <alpha android:fromAlpha="1.0" android:toAlpha="0.0"
         android:fillEnabled="true"
         android:fillBefore="true" android:fillAfter="true"
         android:interpolator="@android:interpolator/linear_out_slow_in"
         android:duration="@integer/recents_enter_from_home_transition_duration"/>
         android:interpolator="@interpolator/recents_from_launcher_exit_interpolator"
         android:duration="133"/>
</set>
Loading