Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Winson Chung | 0e721a4 | 2012-08-02 17:40:30 -0700 | [diff] [blame] | 2 | <!-- Copyright (C) 2007 The Android Open Source Project |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 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 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 17 | <!-- Full screen view projects under the status bar and contains the background --> |
| 18 | <FrameLayout |
Winson Chung | 6fa610d | 2012-02-24 15:53:17 -0800 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 20 | xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 21 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 22 | android:id="@+id/launcher" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 24 | android:layout_height="match_parent" |
| 25 | android:background="@drawable/workspace_bg"> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 26 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 27 | <com.android.launcher3.DragLayer |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 28 | android:id="@+id/drag_layer" |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 29 | android:layout_width="match_parent" |
Winson Chung | 0e721a4 | 2012-08-02 17:40:30 -0700 | [diff] [blame] | 30 | android:layout_height="match_parent" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 31 | android:fitsSystemWindows="true"> |
Michael Jurka | af44209 | 2010-06-10 17:01:57 -0700 | [diff] [blame] | 32 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 33 | <!-- The workspace contains 5 screens of cells --> |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 34 | <com.android.launcher3.Workspace |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 35 | android:id="@+id/workspace" |
| 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="match_parent" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 38 | android:paddingStart="@dimen/workspace_left_padding" |
| 39 | android:paddingEnd="@dimen/workspace_right_padding" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 40 | android:paddingTop="@dimen/workspace_top_padding" |
| 41 | android:paddingBottom="@dimen/workspace_bottom_padding" |
Adam Cohen | d6e7aa3 | 2013-07-09 15:32:37 -0700 | [diff] [blame] | 42 | android:layout_gravity="center" |
Adam Cohen | 9efb412 | 2013-06-06 21:35:12 -0700 | [diff] [blame] | 43 | launcher:defaultScreen="@integer/config_workspaceDefaultScreen" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 44 | launcher:cellCountX="@integer/cell_count_x" |
| 45 | launcher:cellCountY="@integer/cell_count_y" |
| 46 | launcher:pageSpacing="@dimen/workspace_page_spacing" |
Winson Chung | d2be381 | 2013-07-16 11:11:32 -0700 | [diff] [blame] | 47 | launcher:pageIndicator="@id/page_indicator" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 48 | launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left" |
| 49 | launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right"> |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 50 | </com.android.launcher3.Workspace> |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 51 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 52 | <include layout="@layout/hotseat" |
| 53 | android:id="@+id/hotseat" |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="@dimen/button_bar_height_plus_padding" |
| 56 | android:layout_gravity="bottom" /> |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 57 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 58 | <include |
| 59 | android:id="@+id/qsb_bar" |
| 60 | layout="@layout/qsb_bar" /> |
Winson Chung | d016015 | 2011-11-15 15:04:42 -0800 | [diff] [blame] | 61 | |
Adam Cohen | f358a4b | 2013-07-23 16:47:31 -0700 | [diff] [blame^] | 62 | <include layout="@layout/overview_panel" |
| 63 | android:id="@+id/overview_panel" |
| 64 | android:visibility="gone" /> |
| 65 | |
| 66 | <!-- Keep these behind the workspace so that they are not visible when |
| 67 | we go into AllApps --> |
| 68 | <include |
| 69 | android:id="@+id/page_indicator" |
| 70 | layout="@layout/page_indicator" |
| 71 | android:layout_width="wrap_content" |
| 72 | android:layout_height="wrap_content" |
| 73 | android:layout_gravity="bottom|center_horizontal" |
| 74 | android:layout_marginBottom="@dimen/button_bar_height_plus_padding" /> |
| 75 | |
Winson Chung | 7819abd | 2012-11-29 14:29:38 -0800 | [diff] [blame] | 76 | <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure |
| 77 | that it is still visible during the transition to AllApps and doesn't overlay on |
| 78 | top of that view. --> |
| 79 | <include layout="@layout/workspace_cling" |
| 80 | android:id="@+id/workspace_cling" |
| 81 | android:layout_width="match_parent" |
| 82 | android:layout_height="match_parent" |
| 83 | android:visibility="gone" /> |
| 84 | |
| 85 | <include layout="@layout/folder_cling" |
| 86 | android:id="@+id/folder_cling" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="match_parent" |
| 89 | android:visibility="gone" /> |
| 90 | |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 91 | <com.android.launcher3.DrawableStateProxyView |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 92 | android:id="@+id/voice_button_proxy" |
| 93 | android:layout_width="80dp" |
| 94 | android:layout_height="@dimen/qsb_bar_height" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame] | 95 | android:layout_marginEnd="@dimen/qsb_voice_proxy_padding_right" |
| 96 | android:layout_gravity="top|end" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 97 | android:clickable="true" |
| 98 | android:onClick="onClickVoiceButton" |
| 99 | android:importantForAccessibility="no" |
| 100 | launcher:sourceViewId="@+id/voice_button" /> |
| 101 | |
| 102 | <include layout="@layout/apps_customize_pane" |
| 103 | android:id="@+id/apps_customize_pane" |
| 104 | android:layout_width="match_parent" |
| 105 | android:layout_height="match_parent" |
| 106 | android:visibility="invisible" /> |
Daniel Sandler | 325dc23 | 2013-06-05 22:57:57 -0400 | [diff] [blame] | 107 | </com.android.launcher3.DragLayer> |
Michael Jurka | 496fefb | 2013-05-06 15:39:11 +0200 | [diff] [blame] | 108 | </FrameLayout> |