The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 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 |
Winson Chung | 32174c8 | 2011-07-19 15:47:55 -0700 | [diff] [blame] | 7 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Winson Chung | 32174c8 | 2011-07-19 15:47:55 -0700 | [diff] [blame] | 9 | |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 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 |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Romain Guy | 4f20947 | 2010-03-04 12:07:31 -0800 | [diff] [blame] | 20 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 21 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 22 | android:id="@+id/launcher" |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [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"> |
Joe Onorato | 5979117 | 2009-07-31 16:21:40 -0700 | [diff] [blame] | 26 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 27 | <com.android.launcher2.DragLayer |
| 28 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 29 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" |
Winson Chung | 32174c8 | 2011-07-19 15:47:55 -0700 | [diff] [blame] | 30 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 31 | android:id="@+id/drag_layer" |
| 32 | android:background="@drawable/workspace_bg" |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [diff] [blame] | 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="match_parent" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 35 | android:fitsSystemWindows="true"> |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 36 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 37 | <!-- Keep these behind the workspace so that they are not visible when |
| 38 | we go into AllApps --> |
| 39 | <include |
| 40 | android:id="@+id/dock_divider" |
| 41 | layout="@layout/workspace_divider" |
| 42 | android:layout_width="match_parent" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:layout_marginBottom="@dimen/button_bar_height" |
| 45 | android:layout_gravity="bottom" /> |
Winson Chung | 3ac74c5 | 2011-06-30 17:39:37 -0700 | [diff] [blame] | 46 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 47 | <include |
| 48 | android:id="@+id/paged_view_indicator" |
| 49 | layout="@layout/scroll_indicator" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:layout_gravity="bottom" |
| 53 | android:layout_marginBottom="@dimen/button_bar_height" /> |
Winson Chung | 82f5553 | 2011-08-09 14:14:23 -0700 | [diff] [blame] | 54 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 55 | <!-- The workspace contains 5 screens of cells --> |
| 56 | <com.android.launcher2.Workspace |
| 57 | android:id="@+id/workspace" |
| 58 | android:layout_width="match_parent" |
| 59 | android:layout_height="match_parent" |
| 60 | android:paddingLeft="@dimen/workspace_left_padding" |
| 61 | android:paddingRight="@dimen/workspace_right_padding" |
| 62 | android:paddingTop="@dimen/workspace_top_padding" |
| 63 | android:paddingBottom="@dimen/workspace_bottom_padding" |
| 64 | launcher:defaultScreen="2" |
| 65 | launcher:cellCountX="@integer/cell_count_x" |
| 66 | launcher:cellCountY="@integer/cell_count_y" |
| 67 | launcher:pageSpacing="@dimen/workspace_page_spacing" |
| 68 | launcher:scrollIndicatorPaddingLeft="@dimen/workspace_divider_padding_left" |
| 69 | launcher:scrollIndicatorPaddingRight="@dimen/workspace_divider_padding_right"> |
Adam Cohen | e29c55a | 2012-08-23 12:18:16 -0700 | [diff] [blame] | 70 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 71 | <include android:id="@+id/cell1" layout="@layout/workspace_screen" /> |
| 72 | <include android:id="@+id/cell2" layout="@layout/workspace_screen" /> |
| 73 | <include android:id="@+id/cell3" layout="@layout/workspace_screen" /> |
| 74 | <include android:id="@+id/cell4" layout="@layout/workspace_screen" /> |
| 75 | <include android:id="@+id/cell5" layout="@layout/workspace_screen" /> |
| 76 | </com.android.launcher2.Workspace> |
Winson Chung | 604f6df | 2012-01-12 14:37:57 -0800 | [diff] [blame] | 77 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 78 | <include layout="@layout/hotseat" |
| 79 | android:id="@+id/hotseat" |
| 80 | android:layout_width="match_parent" |
| 81 | android:layout_height="@dimen/button_bar_height_plus_padding" |
| 82 | android:layout_gravity="bottom" /> |
Adam Cohen | 21b4110 | 2011-11-01 17:29:52 -0700 | [diff] [blame] | 83 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 84 | <include |
| 85 | android:id="@+id/qsb_bar" |
| 86 | layout="@layout/qsb_bar" /> |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 87 | |
Winson Chung | 7819abd | 2012-11-29 14:29:38 -0800 | [diff] [blame] | 88 | <!-- The Workspace cling must appear under the AppsCustomizePagedView below to ensure |
| 89 | that it is still visible during the transition to AllApps and doesn't overlay on |
| 90 | top of that view. --> |
| 91 | <include layout="@layout/workspace_cling" |
| 92 | android:id="@+id/workspace_cling" |
| 93 | android:layout_width="match_parent" |
| 94 | android:layout_height="match_parent" |
| 95 | android:visibility="gone" /> |
| 96 | |
| 97 | <include layout="@layout/folder_cling" |
| 98 | android:id="@+id/folder_cling" |
| 99 | android:layout_width="match_parent" |
| 100 | android:layout_height="match_parent" |
| 101 | android:visibility="gone" /> |
| 102 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 103 | <com.android.launcher2.DrawableStateProxyView |
| 104 | android:id="@+id/voice_button_proxy" |
| 105 | android:layout_width="80dp" |
| 106 | android:layout_height="@dimen/qsb_bar_height" |
| 107 | android:layout_gravity="top|right" |
| 108 | android:clickable="true" |
| 109 | android:onClick="onClickVoiceButton" |
| 110 | android:importantForAccessibility="no" |
| 111 | launcher:sourceViewId="@+id/voice_button" /> |
| 112 | |
| 113 | <include layout="@layout/apps_customize_pane" |
| 114 | android:id="@+id/apps_customize_pane" |
| 115 | android:layout_width="match_parent" |
| 116 | android:layout_height="match_parent" |
| 117 | android:visibility="invisible" /> |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 118 | </com.android.launcher2.DragLayer> |
| 119 | </FrameLayout> |