Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / recent_apps_dialog.xml
blobe3492f6ca23a0d0eab5780361d7efc9b0cebc53b
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4 ** Copyright 2008, The Android Open Source Project
5 **
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
9 **
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.
18 -->
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">
29     <!-- Title -->
30     <TextView
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 -->
41     <TextView
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 -->
53     <LinearLayout
54         android:layout_width="320dip"
55         android:layout_height="wrap_content"
56         android:orientation="horizontal"
57         >
59         <include
60             layout="@android:layout/recent_apps_icon"
61             android:id="@+id/button0" />
63         <include
64             layout="@android:layout/recent_apps_icon"
65             android:id="@+id/button1" />
67         <include
68             layout="@android:layout/recent_apps_icon"
69             android:id="@+id/button2" />
71         <include
72             layout="@android:layout/recent_apps_icon"
73             android:id="@+id/button3" />
75     </LinearLayout>
77     <LinearLayout
78         android:layout_width="320dp"
79         android:layout_height="wrap_content"
80         android:orientation="horizontal" >
82         <include
83             layout="@android:layout/recent_apps_icon"
84             android:id="@+id/button4" />
86         <include
87             layout="@android:layout/recent_apps_icon"
88             android:id="@+id/button5" />
90         <include
91             layout="@android:layout/recent_apps_icon"
92             android:id="@+id/button6" />
94         <include
95             layout="@android:layout/recent_apps_icon"
96             android:id="@+id/button7" />
98     </LinearLayout>
100     <!-- spacer to balance out the title above -->
101     <FrameLayout
102         android:layout_height="40dip"
103         android:layout_width="match_parent"
104         />
105 </com.android.internal.policy.impl.RecentApplicationsBackground>