summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-08-26 12:25:34 -0700
committerWinson Chung <winsonc@google.com>2014-08-27 19:07:36 +0000
commitebfc6981828b0699eef85c58b23a61f2cac41af3 (patch)
tree6db84ea62c9ee802b3e30601530bf685f140f1ac /packages/SystemUI/res
parent2227cac5af26c9ed103d7d8e1c010c3723c1b5b2 (diff)
downloadframeworks_base-ebfc6981828b0699eef85c58b23a61f2cac41af3.zip
frameworks_base-ebfc6981828b0699eef85c58b23a61f2cac41af3.tar.gz
frameworks_base-ebfc6981828b0699eef85c58b23a61f2cac41af3.tar.bz2
Additional changes to improve performance when loading Recents. (Bug 16987565)
- Ensuring that we consistently load activity icon, title and color for both full and shallow stacks - Adding activity info caches when loading the stacks - Should not be scaling pin icon when launching from pin - Tweaking snap-back, over scroll, and shadows Change-Id: I556b93562bb2c69e4c25ce787a7a34532ab706ca
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/values/config.xml6
-rw-r--r--packages/SystemUI/res/values/dimens.xml10
-rw-r--r--packages/SystemUI/res/values/styles.xml3
3 files changed, 10 insertions, 9 deletions
diff --git a/packages/SystemUI/res/values/config.xml b/packages/SystemUI/res/values/config.xml
index e940b18..c84edf7 100644
--- a/packages/SystemUI/res/values/config.xml
+++ b/packages/SystemUI/res/values/config.xml
@@ -123,10 +123,10 @@
<!-- The min animation duration for animating views that are newly visible. -->
<integer name="recents_filter_animate_new_views_duration">250</integer>
<!-- The min animation duration for animating the task bar in. -->
- <integer name="recents_animate_task_bar_enter_duration">275</integer>
+ <integer name="recents_animate_task_bar_enter_duration">225</integer>
<!-- The animation delay for animating the first task in. This should roughly be the animation
duration of the transition in to recents. -->
- <integer name="recents_animate_task_bar_enter_delay">300</integer>
+ <integer name="recents_animate_task_bar_enter_delay">275</integer>
<!-- The min animation duration for animating the task bar out. -->
<integer name="recents_animate_task_exit_to_home_duration">225</integer>
<!-- The min animation duration for animating the task bar out. -->
@@ -143,6 +143,8 @@
<integer name="recents_nav_bar_scrim_enter_duration">400</integer>
<!-- The animation duration for animating the removal of a task view. -->
<integer name="recents_animate_task_view_remove_duration">250</integer>
+ <!-- The animation duration for scrolling the stack to a particular item. -->
+ <integer name="recents_animate_task_stack_scroll_duration">225</integer>
<!-- The minimum alpha for the dim applied to cards that go deeper into the stack. -->
<integer name="recents_max_task_stack_view_dim">96</integer>
<!-- The delay to enforce between each alt-tab key press. -->
diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml
index bc941ca..5555aa7 100644
--- a/packages/SystemUI/res/values/dimens.xml
+++ b/packages/SystemUI/res/values/dimens.xml
@@ -195,17 +195,14 @@
<!-- The size of the application icon in the recents task view. -->
<dimen name="recents_task_view_application_icon_size">48dp</dimen>
- <!-- The size of the activity icon in the recents task view. -->
- <dimen name="recents_task_view_activity_icon_size">60dp</dimen>
-
<!-- The radius of the rounded corners on a task view. -->
<dimen name="recents_task_view_rounded_corners_radius">2dp</dimen>
<!-- The min translation in the Z index for the last task. -->
- <dimen name="recents_task_view_z_min">25dp</dimen>
+ <dimen name="recents_task_view_z_min">20dp</dimen>
<!-- The max translation in the Z index for the last task. -->
- <dimen name="recents_task_view_z_max">100dp</dimen>
+ <dimen name="recents_task_view_z_max">80dp</dimen>
<!-- The amount to translate when animating the removal of a task. -->
<dimen name="recents_task_view_remove_anim_translation_x">100dp</dimen>
@@ -231,6 +228,9 @@
<!-- The side padding for the task stack as a percentage of the width. -->
<item name="recents_stack_width_padding_percentage" format="float" type="dimen">0.04444</item>
+ <!-- The overscroll percentage allowed on the stack. -->
+ <item name="recents_stack_overscroll_percentage" format="float" type="dimen">0.0875</item>
+
<!-- The top offset for the task stack. -->
<dimen name="recents_stack_top_padding">16dp</dimen>
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
index b39fe24..70f6031 100644
--- a/packages/SystemUI/res/values/styles.xml
+++ b/packages/SystemUI/res/values/styles.xml
@@ -33,8 +33,7 @@
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowAnimationStyle">@style/Animation.RecentsActivity</item>
-
- <item name="android:ambientShadowAlpha">0.30</item>
+ <item name="android:ambientShadowAlpha">0.35</item>
</style>
<!-- Animations for a non-full-screen window or activity. -->