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

Commit 99a9655b authored by Michael Jurka's avatar Michael Jurka
Browse files

Making recents faster

Improving load time by:
- using window animation for fade-in and not
    waiting to create HW layer
- starting loading of thumbnails/icons earlier
- only initially creating views for the first
    screenful of items
- recycling views

Change-Id: I529b1085fe35d81aaafeb7433ccaed8e0537f01c
parent 3be5c856
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/anim/recents_fade_in.xml
**
** 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.
*/
-->

<alpha xmlns:android="http://schemas.android.com/apk/res/android"
        android:interpolator="@interpolator/decelerate_quad"
        android:fromAlpha="0.0" android:toAlpha="1.0"
        android:duration="150" />
+24 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/res/anim/recents_fade_out.xml
**
** 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.
*/
-->

<alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@interpolator/accelerate_quad"
    android:fromAlpha="1.0"
    android:toAlpha="0.0"
    android:duration="150" />
+1 −0
Original line number Diff line number Diff line
@@ -1083,6 +1083,7 @@
  <java-symbol type="style" name="ActiveWallpaperSettings" />
  <java-symbol type="style" name="Animation.InputMethodFancy" />
  <java-symbol type="style" name="Animation.Wallpaper" />
  <java-symbol type="style" name="Animation.RecentApplications" />
  <java-symbol type="style" name="Animation.ZoomButtons" />
  <java-symbol type="style" name="PreviewWallpaperSettings" />
  <java-symbol type="style" name="TextAppearance.SlidingTabActive" />
+4 −2
Original line number Diff line number Diff line
@@ -198,8 +198,10 @@ please see styles_device_defaults.xml.
    <!-- A special animation we can use for recent applications,
         for devices that can support it (do alpha transformations). -->
    <style name="Animation.RecentApplications">
        <item name="windowEnterAnimation">@anim/fade_in</item>
        <item name="windowExitAnimation">@anim/fade_out</item>
        <item name="windowEnterAnimation">@anim/recents_fade_in</item>
        <item name="windowShowAnimation">@anim/recents_fade_in</item>
        <item name="windowExitAnimation">@anim/recents_fade_out</item>
        <item name="windowHideAnimation">@anim/recents_fade_out</item>
    </style>

    <!-- A special animation value used internally for popup windows. -->
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@
            android:maxHeight="@dimen/status_bar_recents_app_icon_max_height"
            android:scaleType="centerInside"
            android:adjustViewBounds="true"
            android:visibility="invisible"
        />

        <TextView android:id="@+id/app_label"
Loading