blob: c7bcbb0266d4c52ab4ea9ac098950c686003fd4e [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
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
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
Adam Cohend22015c2010-07-26 22:02:18 -070025 <!-- The workspace contains 5 screens of cells -->
Joe Onoratoa5902522009-07-30 13:37:37 -070026 <com.android.launcher2.Workspace
The Android Open Source Project31dd5032009-03-03 19:32:27 -080027 android:id="@+id/workspace"
Romain Guy8f19cdd2010-01-08 15:07:00 -080028 android:layout_width="match_parent"
29 android:layout_height="match_parent"
Adam Cohend22015c2010-07-26 22:02:18 -070030 launcher:defaultScreen="2"
31 launcher:cellCountX="4"
32 launcher:cellCountY="4">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080033
34 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
35 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
36 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
Mike Cleron3a2b3f22009-11-05 17:17:42 -080037 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
38 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
39
Joe Onoratoa5902522009-07-30 13:37:37 -070040 </com.android.launcher2.Workspace>
The Android Open Source Project31dd5032009-03-03 19:32:27 -080041
Winson Chung785d2eb2011-04-14 16:08:02 -070042 <include layout="@layout/apps_customize_pane"
43 android:id="@+id/apps_customize_pane"
44 android:layout_width="match_parent"
45 android:layout_height="match_parent"
46 android:visibility="invisible" />
47
Romain Guy8a73c512009-11-09 19:19:59 -080048 <ImageView
49 android:id="@+id/previous_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080050 android:layout_width="93dip"
Romain Guy8a73c512009-11-09 19:19:59 -080051 android:layout_height="@dimen/button_bar_height"
52 android:layout_gravity="bottom|left"
53 android:layout_marginLeft="6dip"
54
Joe Onorato8b5eef72010-03-29 16:19:42 -070055 android:scaleType="center"
Romain Guy8a73c512009-11-09 19:19:59 -080056 android:src="@drawable/home_arrows_left"
57
58 android:onClick="previousScreen"
59
60 android:focusable="true"
61 android:clickable="true" />
62
63 <ImageView
64 android:id="@+id/next_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080065 android:layout_width="93dip"
Romain Guy8a73c512009-11-09 19:19:59 -080066 android:layout_height="@dimen/button_bar_height"
67 android:layout_gravity="bottom|right"
68 android:layout_marginRight="6dip"
69
Joe Onorato8b5eef72010-03-29 16:19:42 -070070 android:scaleType="center"
Romain Guy8a73c512009-11-09 19:19:59 -080071 android:src="@drawable/home_arrows_right"
Daniel Sandlerc9b18772010-04-22 14:37:59 -040072
Romain Guy8a73c512009-11-09 19:19:59 -080073 android:onClick="nextScreen"
Daniel Sandlerc9b18772010-04-22 14:37:59 -040074
Romain Guy8a73c512009-11-09 19:19:59 -080075 android:focusable="true"
76 android:clickable="true" />
77
Joe Onoratoa5902522009-07-30 13:37:37 -070078 <com.android.launcher2.DeleteZone
The Android Open Source Project31dd5032009-03-03 19:32:27 -080079 android:id="@+id/delete_zone"
Daniel Sandlere1d923a2010-04-28 14:01:54 -040080 android:layout_width="@dimen/delete_zone_size"
81 android:layout_height="@dimen/delete_zone_size"
82 android:paddingTop="@dimen/delete_zone_padding"
Joe Onorato85a02a82009-09-08 12:34:22 -070083 android:layout_gravity="bottom|center_horizontal"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080084
85 android:scaleType="center"
Michael Jurka577d0172010-12-17 20:04:50 -080086 android:drawableLeft="@drawable/delete_zone_selector"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080087 android:visibility="invisible"
Joe Onorato5779e2a2009-10-06 13:19:30 -070088 launcher:direction="horizontal"
89 />
The Android Open Source Project31dd5032009-03-03 19:32:27 -080090
Daniel Sandlerc9b18772010-04-22 14:37:59 -040091 <RelativeLayout
92 android:id="@+id/all_apps_button_cluster"
93 android:layout_width="fill_parent"
94 android:layout_height="@dimen/button_bar_height"
95 android:layout_gravity="bottom|center_horizontal"
Winson Chung4e6a9762011-05-09 11:56:34 -070096 android:paddingTop="2dip">
97 <ImageView
98 android:id="@+id/hotseat_left"
99 style="@style/HotseatButton.Left"
100 android:layout_toLeftOf="@id/all_apps_button"
101 android:src="@drawable/hotseat_phone"
102 android:onClick="launchHotSeat" />
Daniel Sandlerc9b18772010-04-22 14:37:59 -0400103 <com.android.launcher2.HandleView
104 style="@style/HotseatButton"
105 android:id="@+id/all_apps_button"
Daniel Sandler786ae542010-04-28 00:09:19 -0400106 android:layout_centerHorizontal="true"
107 android:layout_alignParentBottom="true"
Daniel Sandlerc9b18772010-04-22 14:37:59 -0400108 android:src="@drawable/all_apps_button"
Winson Chung4e6a9762011-05-09 11:56:34 -0700109 launcher:direction="horizontal" />
Daniel Sandlerc9b18772010-04-22 14:37:59 -0400110 <ImageView
111 android:id="@+id/hotseat_right"
112 style="@style/HotseatButton.Right"
113 android:layout_toRightOf="@id/all_apps_button"
Daniel Sandlerc9b18772010-04-22 14:37:59 -0400114 android:src="@drawable/hotseat_browser"
Winson Chung4e6a9762011-05-09 11:56:34 -0700115 android:onClick="launchHotSeat" />
Daniel Sandlerc9b18772010-04-22 14:37:59 -0400116 </RelativeLayout>
117
Joe Onoratoa5902522009-07-30 13:37:37 -0700118</com.android.launcher2.DragLayer>