• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     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
17<!-- Full screen view projects under the status bar and contains the background -->
18<FrameLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
21
22    android:id="@+id/launcher"
23    android:layout_width="match_parent"
24    android:layout_height="match_parent"
25    android:background="@drawable/workspace_bg">
26
27    <com.android.launcher2.DragLayer
28        android:id="@+id/drag_layer"
29        android:layout_width="match_parent"
30        android:layout_height="match_parent"
31        android:fitsSystemWindows="true">
32
33        <!-- 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"
38            android:paddingStart="@dimen/workspace_left_padding"
39            android:paddingEnd="@dimen/workspace_right_padding"
40            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">
48
49            <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>
55
56        <include
57            android:id="@+id/qsb_divider"
58            layout="@layout/workspace_divider"
59            android:layout_width="wrap_content"
60            android:layout_height="match_parent"
61            android:layout_marginStart="@dimen/qsb_bar_height"
62            android:layout_gravity="start" />
63
64        <include
65            android:id="@+id/dock_divider"
66            layout="@layout/workspace_divider"
67            android:layout_width="wrap_content"
68            android:layout_height="match_parent"
69            android:layout_marginEnd="@dimen/button_bar_height"
70            android:layout_gravity="end" />
71
72        <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" />
78
79        <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"
83            android:layout_gravity="end" />
84
85        <include
86            android:id="@+id/qsb_bar"
87            layout="@layout/qsb_bar" />
88
89        <!-- 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
104        <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"
108            android:layout_gravity="top|start"
109            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" />
120    </com.android.launcher2.DragLayer>
121</FrameLayout>