summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2010-10-20 18:32:52 -0700
committerJim Miller <jaggies@google.com>2010-10-25 19:32:04 -0700
commit44c66fe2cd912fcea2e9824eb421d5c8d9ffadbd (patch)
treea52ff0f009222995d1622ba69f80277c53879d4e /packages/SystemUI/res
parent70bfc087d95ab7b1bf782c3d579e1a3e48d9ddb2 (diff)
downloadframeworks_base-44c66fe2cd912fcea2e9824eb421d5c8d9ffadbd.zip
frameworks_base-44c66fe2cd912fcea2e9824eb421d5c8d9ffadbd.tar.gz
frameworks_base-44c66fe2cd912fcea2e9824eb421d5c8d9ffadbd.tar.bz2
Fix 3117937: Add simplified "recent apps".
This adds a simplified recents view for devices that don't handle 3D well. Change-Id: I8307cd340caf1d65c8fce80eaf55a1d21bc64312
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/drawable-mdpi/sysbar_panel_recents_bg.9.pngbin0 -> 11109 bytes
-rw-r--r--packages/SystemUI/res/layout-xlarge/status_bar.xml2
-rw-r--r--packages/SystemUI/res/layout-xlarge/sysbar_panel_recent.xml49
3 files changed, 50 insertions, 1 deletions
diff --git a/packages/SystemUI/res/drawable-mdpi/sysbar_panel_recents_bg.9.png b/packages/SystemUI/res/drawable-mdpi/sysbar_panel_recents_bg.9.png
new file mode 100644
index 0000000..85726d2
--- /dev/null
+++ b/packages/SystemUI/res/drawable-mdpi/sysbar_panel_recents_bg.9.png
Binary files differ
diff --git a/packages/SystemUI/res/layout-xlarge/status_bar.xml b/packages/SystemUI/res/layout-xlarge/status_bar.xml
index 429fdf2..dbe4167 100644
--- a/packages/SystemUI/res/layout-xlarge/status_bar.xml
+++ b/packages/SystemUI/res/layout-xlarge/status_bar.xml
@@ -146,7 +146,7 @@
android:background="@drawable/ic_sysbar_icon_bg"
systemui:keyCode="3"
/>
- <ImageButton android:id="@+id/recent"
+ <ImageButton android:id="@+id/recent_apps"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:src="@drawable/ic_sysbar_recent"
diff --git a/packages/SystemUI/res/layout-xlarge/sysbar_panel_recent.xml b/packages/SystemUI/res/layout-xlarge/sysbar_panel_recent.xml
new file mode 100644
index 0000000..2f9e0d7
--- /dev/null
+++ b/packages/SystemUI/res/layout-xlarge/sysbar_panel_recent.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* apps/common/assets/default/default/skins/StatusBar.xml
+**
+** Copyright 2010, 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.
+*/
+-->
+
+<com.android.systemui.statusbar.tablet.RecentAppsPanel
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:background="@drawable/sysbar_panel_recents_bg"
+ android:orientation="vertical">
+
+ <TextView android:id="@+id/recents_no_recents"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:text="@string/recent_tasks_empty"
+ android:gravity="center_horizontal|center_vertical"
+ android:visibility="gone">
+ </TextView>
+
+ <HorizontalScrollView android:id="@+id/scroll_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <LinearLayout android:id="@+id/recents_container"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="right"
+ android:orientation="horizontal"
+ />
+
+ </HorizontalScrollView>
+
+</com.android.systemui.statusbar.tablet.RecentAppsPanel>