blob: d9750dbd2790938b61b08b61d0285f441a38973c [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
Joe Onorato7c312c12009-08-13 21:36:53 -070017<com.android.launcher2.DragLayer
The Android Open Source Project31dd5032009-03-03 19:32:27 -080018 xmlns:android="http://schemas.android.com/apk/res/android"
Romain Guy4f209472010-03-04 12:07:31 -080019 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080020
Joe Onorato00acb122009-08-04 16:04:30 -040021 android:id="@+id/drag_layer"
Romain Guy8f19cdd2010-01-08 15:07:00 -080022 android:layout_width="match_parent"
23 android:layout_height="match_parent">
Joe Onorato59791172009-07-31 16:21:40 -070024
Winson Chung32174c82011-07-19 15:47:55 -070025 <!-- Keep these behind the workspace so that they are not visible when
26 we go into AllApps -->
27 <include
28 android:id="@+id/paged_view_indicator_track"
29 layout="@layout/scroll_indicator_track"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 android:layout_gravity="bottom"
33 android:layout_marginBottom="@dimen/button_bar_height" />
34 <include
35 android:id="@+id/paged_view_indicator"
36 layout="@layout/scroll_indicator"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_gravity="bottom"
40 android:layout_marginBottom="@dimen/button_bar_height" />
41
Adam Cohend22015c2010-07-26 22:02:18 -070042 <!-- The workspace contains 5 screens of cells -->
Joe Onoratoa5902522009-07-30 13:37:37 -070043 <com.android.launcher2.Workspace
The Android Open Source Project31dd5032009-03-03 19:32:27 -080044 android:id="@+id/workspace"
Romain Guy8f19cdd2010-01-08 15:07:00 -080045 android:layout_width="match_parent"
46 android:layout_height="match_parent"
Adam Cohend22015c2010-07-26 22:02:18 -070047 launcher:defaultScreen="2"
48 launcher:cellCountX="4"
Winson Chung557d6ed2011-07-08 15:34:52 -070049 launcher:cellCountY="4"
50 launcher:pageSpacing="@dimen/workspace_page_spacing">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080051
52 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
53 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
54 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
Mike Cleron3a2b3f22009-11-05 17:17:42 -080055 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
56 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
Joe Onoratoa5902522009-07-30 13:37:37 -070057 </com.android.launcher2.Workspace>
Winson Chung3ac74c52011-06-30 17:39:37 -070058
Winson Chung1cad91e2011-05-25 17:41:01 -070059 <include layout="@layout/qsb_bar"
60 android:id="@+id/qsb_bar"
Winson Chungf0ea4d32011-06-06 14:27:16 -070061 android:layout_width="match_parent"
Winson Chung1cad91e2011-05-25 17:41:01 -070062 android:layout_height="@dimen/qsb_bar_height"
63 android:layout_gravity="top" />
64
Winson Chung785d2eb2011-04-14 16:08:02 -070065 <include layout="@layout/apps_customize_pane"
66 android:id="@+id/apps_customize_pane"
67 android:layout_width="match_parent"
68 android:layout_height="match_parent"
69 android:visibility="invisible" />
70
Daniel Sandlerc9b18772010-04-22 14:37:59 -040071 <RelativeLayout
72 android:id="@+id/all_apps_button_cluster"
73 android:layout_width="fill_parent"
74 android:layout_height="@dimen/button_bar_height"
75 android:layout_gravity="bottom|center_horizontal"
Winson Chung4e6a9762011-05-09 11:56:34 -070076 android:paddingTop="2dip">
77 <ImageView
78 android:id="@+id/hotseat_left"
79 style="@style/HotseatButton.Left"
80 android:layout_toLeftOf="@id/all_apps_button"
81 android:src="@drawable/hotseat_phone"
82 android:onClick="launchHotSeat" />
Daniel Sandlerc9b18772010-04-22 14:37:59 -040083 <com.android.launcher2.HandleView
84 style="@style/HotseatButton"
85 android:id="@+id/all_apps_button"
Daniel Sandler786ae542010-04-28 00:09:19 -040086 android:layout_centerHorizontal="true"
87 android:layout_alignParentBottom="true"
Daniel Sandlerc9b18772010-04-22 14:37:59 -040088 android:src="@drawable/all_apps_button"
Winson Chung4e6a9762011-05-09 11:56:34 -070089 launcher:direction="horizontal" />
Daniel Sandlerc9b18772010-04-22 14:37:59 -040090 <ImageView
91 android:id="@+id/hotseat_right"
92 style="@style/HotseatButton.Right"
93 android:layout_toRightOf="@id/all_apps_button"
Daniel Sandlerc9b18772010-04-22 14:37:59 -040094 android:src="@drawable/hotseat_browser"
Winson Chung4e6a9762011-05-09 11:56:34 -070095 android:onClick="launchHotSeat" />
Daniel Sandlerc9b18772010-04-22 14:37:59 -040096 </RelativeLayout>
97
Joe Onoratoa5902522009-07-30 13:37:37 -070098</com.android.launcher2.DragLayer>