blob: 88490987bb62a8aec902c49072c267c57edf4c67 [file] [log] [blame]
The Android Open Source Project31dd5032009-03-03 19:32:27 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2007 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
Winson Chung32174c82011-07-19 15:47:55 -07007
The Android Open Source Project31dd5032009-03-03 19:32:27 -08008 http://www.apache.org/licenses/LICENSE-2.0
Winson Chung32174c82011-07-19 15:47:55 -07009
The Android Open Source Project31dd5032009-03-03 19:32:27 -080010 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
Craig Mautner360310b2012-10-26 15:13:08 -070017<!-- Full screen view projects under the status bar and contains the background -->
18<FrameLayout
The Android Open Source Project31dd5032009-03-03 19:32:27 -080019 xmlns:android="http://schemas.android.com/apk/res/android"
Romain Guy4f209472010-03-04 12:07:31 -080020 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080021
Craig Mautner360310b2012-10-26 15:13:08 -070022 android:id="@+id/launcher"
Romain Guy8f19cdd2010-01-08 15:07:00 -080023 android:layout_width="match_parent"
Craig Mautner360310b2012-10-26 15:13:08 -070024 android:layout_height="match_parent"
25 android:background="@drawable/workspace_bg">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080026
Craig Mautner360310b2012-10-26 15:13:08 -070027 <com.android.launcher2.DragLayer
28 android:id="@+id/drag_layer"
Romain Guy8f19cdd2010-01-08 15:07:00 -080029 android:layout_width="match_parent"
30 android:layout_height="match_parent"
Craig Mautner360310b2012-10-26 15:13:08 -070031 android:fitsSystemWindows="true">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080032
Craig Mautner360310b2012-10-26 15:13:08 -070033 <!-- The workspace contains 5 screens of cells -->
34 <com.android.launcher2.Workspace
35 android:id="@+id/workspace"
36 android:layout_width="match_parent"
37 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080038 android:paddingStart="@dimen/workspace_left_padding"
39 android:paddingEnd="@dimen/workspace_right_padding"
Craig Mautner360310b2012-10-26 15:13:08 -070040 android:paddingTop="@dimen/workspace_top_padding"
41 android:paddingBottom="@dimen/workspace_bottom_padding"
42 launcher:defaultScreen="2"
43 launcher:cellCountX="@integer/cell_count_x"
44 launcher:cellCountY="@integer/cell_count_y"
45 launcher:pageSpacing="@dimen/workspace_page_spacing"
46 launcher:scrollIndicatorPaddingLeft="@dimen/qsb_bar_height"
47 launcher:scrollIndicatorPaddingRight="@dimen/button_bar_height">
Winson Chung3ac74c52011-06-30 17:39:37 -070048
Craig Mautner360310b2012-10-26 15:13:08 -070049 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
50 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
51 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
52 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
53 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
54 </com.android.launcher2.Workspace>
Winson Chunge96e5cb2011-11-28 13:02:56 -080055
Craig Mautner360310b2012-10-26 15:13:08 -070056 <include
57 android:id="@+id/qsb_divider"
58 layout="@layout/workspace_divider"
59 android:layout_width="wrap_content"
60 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080061 android:layout_marginStart="@dimen/qsb_bar_height"
62 android:layout_gravity="start" />
Winson Chung1cad91e2011-05-25 17:41:01 -070063
Craig Mautner360310b2012-10-26 15:13:08 -070064 <include
65 android:id="@+id/dock_divider"
66 layout="@layout/workspace_divider"
67 android:layout_width="wrap_content"
68 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080069 android:layout_marginEnd="@dimen/button_bar_height"
70 android:layout_gravity="end" />
Winson Chung7b067f32012-05-22 16:27:47 -070071
Craig Mautner360310b2012-10-26 15:13:08 -070072 <include
73 android:id="@+id/paged_view_indicator"
74 layout="@layout/scroll_indicator"
75 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:layout_gravity="bottom" />
Winson Chung785d2eb2011-04-14 16:08:02 -070078
Craig Mautner360310b2012-10-26 15:13:08 -070079 <include layout="@layout/hotseat"
80 android:id="@+id/hotseat"
81 android:layout_width="@dimen/button_bar_height_plus_padding"
82 android:layout_height="match_parent"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -080083 android:layout_gravity="end" />
Winson Chung7d7541e2011-09-16 20:14:36 -070084
Craig Mautner360310b2012-10-26 15:13:08 -070085 <include
86 android:id="@+id/qsb_bar"
87 layout="@layout/qsb_bar" />
88
Winson Chung7819abd2012-11-29 14:29:38 -080089 <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure
90 that it is still visible during the transition to AllApps and doesn't overlay on
91 top of that view. -->
92 <include layout="@layout/workspace_cling"
93 android:id="@+id/workspace_cling"
94 android:layout_width="match_parent"
95 android:layout_height="match_parent"
96 android:visibility="gone" />
97
98 <include layout="@layout/folder_cling"
99 android:id="@+id/folder_cling"
100 android:layout_width="match_parent"
101 android:layout_height="match_parent"
102 android:visibility="gone" />
103
Craig Mautner360310b2012-10-26 15:13:08 -0700104 <com.android.launcher2.DrawableStateProxyView
105 android:id="@+id/voice_button_proxy"
106 android:layout_width="@dimen/qsb_bar_height"
107 android:layout_height="@dimen/app_icon_size"
Fabrice Di Megliocc11f742012-12-18 16:25:49 -0800108 android:layout_gravity="top|start"
Craig Mautner360310b2012-10-26 15:13:08 -0700109 android:layout_marginTop="64dp"
110 android:clickable="true"
111 android:onClick="onClickVoiceButton"
112 android:importantForAccessibility="no"
113 launcher:sourceViewId="@+id/voice_button" />
114
115 <include layout="@layout/apps_customize_pane"
116 android:id="@+id/apps_customize_pane"
117 android:layout_width="match_parent"
118 android:layout_height="match_parent"
119 android:visibility="invisible" />
Craig Mautner360310b2012-10-26 15:13:08 -0700120 </com.android.launcher2.DragLayer>
121</FrameLayout>