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"> |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 26 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 27 | <com.android.launcher2.DragLayer |
| 28 | android:id="@+id/drag_layer" |
Romain Guy | 8f19cdd | 2010-01-08 15:07:00 -0800 | [diff] [blame] | 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="match_parent" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 31 | android:fitsSystemWindows="true"> |
The Android Open Source Project | 31dd503 | 2009-03-03 19:32:27 -0800 | [diff] [blame] | 32 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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" |
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" |
| 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 Chung | 3ac74c5 | 2011-06-30 17:39:37 -0700 | [diff] [blame] | 48 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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> |
Winson Chung | e96e5cb | 2011-11-28 13:02:56 -0800 | [diff] [blame] | 55 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame^] | 61 | android:layout_marginStart="@dimen/qsb_bar_height" |
| 62 | android:layout_gravity="start" /> |
Winson Chung | 1cad91e | 2011-05-25 17:41:01 -0700 | [diff] [blame] | 63 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame^] | 69 | android:layout_marginEnd="@dimen/button_bar_height" |
| 70 | android:layout_gravity="end" /> |
Winson Chung | 7b067f3 | 2012-05-22 16:27:47 -0700 | [diff] [blame] | 71 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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" /> |
Winson Chung | 785d2eb | 2011-04-14 16:08:02 -0700 | [diff] [blame] | 78 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame^] | 83 | android:layout_gravity="end" /> |
Winson Chung | 7d7541e | 2011-09-16 20:14:36 -0700 | [diff] [blame] | 84 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 85 | <include |
| 86 | android:id="@+id/qsb_bar" |
| 87 | layout="@layout/qsb_bar" /> |
| 88 | |
Winson Chung | 7819abd | 2012-11-29 14:29:38 -0800 | [diff] [blame] | 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 | |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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" |
Fabrice Di Meglio | cc11f74 | 2012-12-18 16:25:49 -0800 | [diff] [blame^] | 108 | android:layout_gravity="top|start" |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 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" /> |
Craig Mautner | 360310b | 2012-10-26 15:13:08 -0700 | [diff] [blame] | 120 | </com.android.launcher2.DragLayer> |
| 121 | </FrameLayout> |