1 <?xml version="1.0" encoding="utf-8"?>
4 ** Copyright 2008, The Android Open Source Project
6 ** Licensed under the Apache License, Version 2.0 (the "License");
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
10 ** http://www.apache.org/licenses/LICENSE-2.0
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
20 <com.android.internal.policy.impl.RecentApplicationsBackground
21 xmlns:android="http://schemas.android.com/apk/res/android"
22 android:background="@drawable/recent_dialog_background"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
25 android:gravity="center"
26 android:padding="4dip"
27 android:orientation="vertical">
31 android:layout_width="wrap_content"
32 android:layout_height="40dip"
33 android:gravity="center"
34 android:textAppearance="?android:attr/textAppearanceSmall"
35 android:textColor="#80FFFFFF"
36 android:textStyle="bold"
37 android:singleLine="true"
38 android:text="@android:string/recent_tasks_title" />
40 <!-- This is only intended to be visible when all buttons (below) are invisible -->
42 android:id="@+id/no_applications_message"
43 android:layout_width="320dip"
44 android:layout_height="80dip"
45 android:gravity="center"
46 android:textAppearance="?android:attr/textAppearanceSmall"
47 android:text="@android:string/no_recent_tasks" />
49 <!-- The first row has a fixed-width because the UI spec requires the box
50 to display with full-width no matter how many icons are visible, but to
51 adjust height based on number of rows. -->
52 <!-- TODO Adjust all sizes, padding, etc. to meet pixel-perfect specs -->
54 android:layout_width="320dip"
55 android:layout_height="wrap_content"
56 android:orientation="horizontal"
60 layout="@android:layout/recent_apps_icon"
61 android:id="@+id/button0" />
64 layout="@android:layout/recent_apps_icon"
65 android:id="@+id/button1" />
68 layout="@android:layout/recent_apps_icon"
69 android:id="@+id/button2" />
72 layout="@android:layout/recent_apps_icon"
73 android:id="@+id/button3" />
78 android:layout_width="320dp"
79 android:layout_height="wrap_content"
80 android:orientation="horizontal" >
83 layout="@android:layout/recent_apps_icon"
84 android:id="@+id/button4" />
87 layout="@android:layout/recent_apps_icon"
88 android:id="@+id/button5" />
91 layout="@android:layout/recent_apps_icon"
92 android:id="@+id/button6" />
95 layout="@android:layout/recent_apps_icon"
96 android:id="@+id/button7" />
100 <!-- spacer to balance out the title above -->
102 android:layout_height="40dip"
103 android:layout_width="match_parent"
105 </com.android.internal.policy.impl.RecentApplicationsBackground>