diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-08-17 16:20:47 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-08-17 17:45:05 -0700 |
commit | fc8fa638617efb5695a1f89ea75375faebbe2a40 (patch) | |
tree | 685aeed4995ea17399accf5d46545038235d5105 /packages/SystemUI/res/layout-land/status_bar_recent_item.xml | |
parent | 9a5505f0253a9114aea6192a22da6ec1c1b85ed2 (diff) | |
download | frameworks_base-fc8fa638617efb5695a1f89ea75375faebbe2a40.zip frameworks_base-fc8fa638617efb5695a1f89ea75375faebbe2a40.tar.gz frameworks_base-fc8fa638617efb5695a1f89ea75375faebbe2a40.tar.bz2 |
Fix issue #5128639: SystemUI grows by 10MB after taking a screenshot
We now do the screenshot in a separate process.
Also change the recents panel to not use hardware acceleration
on lower-end devices. And improve how it gets shown to not
load all data up-front which results in a long delay when you have
lots of recents.
Change-Id: Ia309a90f9939e5405758621b3f7114597bd0c02a
Diffstat (limited to 'packages/SystemUI/res/layout-land/status_bar_recent_item.xml')
-rw-r--r-- | packages/SystemUI/res/layout-land/status_bar_recent_item.xml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/SystemUI/res/layout-land/status_bar_recent_item.xml b/packages/SystemUI/res/layout-land/status_bar_recent_item.xml index 8c29042..16008a3 100644 --- a/packages/SystemUI/res/layout-land/status_bar_recent_item.xml +++ b/packages/SystemUI/res/layout-land/status_bar_recent_item.xml @@ -32,8 +32,14 @@ android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:scaleType="center" android:clickable="true" - android:background="@drawable/recents_thumbnail_layers" - /> + android:background="@drawable/recents_thumbnail_bg" + android:foreground="@drawable/recents_thumbnail_overlay"> + <ImageView android:id="@+id/app_thumbnail_image" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="invisible" + /> + </FrameLayout> <ImageView android:id="@+id/app_icon" android:layout_width="wrap_content" @@ -45,6 +51,7 @@ android:maxWidth="@dimen/status_bar_recents_thumbnail_max_width" android:maxHeight="@dimen/status_bar_recents_thumbnail_max_height" android:adjustViewBounds="true" + android:visibility="invisible" /> <TextView android:id="@+id/app_label" @@ -60,6 +67,7 @@ android:layout_marginLeft="@dimen/recents_thumbnail_bg_padding_left" android:singleLine="true" android:ellipsize="marquee" + android:visibility="invisible" /> <TextView android:id="@+id/app_description" |