blob: b525a4b4e8552a600728be20e3a7d1a3fa5921c8 [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 Onoratoa5902522009-07-30 13:37:37 -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
21 android:id="@+id/drag_layer"
Romain Guy8f19cdd2010-01-08 15:07:00 -080022 android:layout_width="match_parent"
23 android:layout_height="match_parent">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080024
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"
Mike Cleron3a2b3f22009-11-05 17:17:42 -080030 android:scrollbars="horizontal"
31 android:fadeScrollbars="true"
Adam Cohend22015c2010-07-26 22:02:18 -070032 launcher:defaultScreen="2"
33 launcher:cellCountX="4"
34 launcher:cellCountY="4">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080035
36 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
37 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
38 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
Mike Cleron3a2b3f22009-11-05 17:17:42 -080039 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
40 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
The Android Open Source Project31dd5032009-03-03 19:32:27 -080041
Joe Onoratoa5902522009-07-30 13:37:37 -070042 </com.android.launcher2.Workspace>
The Android Open Source Project31dd5032009-03-03 19:32:27 -080043
Winson Chung785d2eb2011-04-14 16:08:02 -070044 <include layout="@layout/apps_customize_pane"
45 android:id="@+id/apps_customize_pane"
46 android:layout_width="match_parent"
47 android:layout_height="match_parent"
48 android:visibility="invisible" />
49
Romain Guy3af60012010-04-05 18:39:24 -070050 <com.android.launcher2.ClippedImageView
Romain Guybd0f6c82009-11-09 21:03:58 -080051 android:id="@+id/previous_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080052 android:layout_width="93dip"
Romain Guybd0f6c82009-11-09 21:03:58 -080053 android:layout_height="@dimen/button_bar_height"
54 android:layout_gravity="bottom|left"
55 android:layout_marginLeft="6dip"
56
Joe Onorato8b5eef72010-03-29 16:19:42 -070057 android:scaleType="center"
Romain Guybd0f6c82009-11-09 21:03:58 -080058 android:src="@drawable/home_arrows_left"
59
60 android:onClick="previousScreen"
61
Romain Guy3af60012010-04-05 18:39:24 -070062 launcher:ignoreZone="56dip"
63
Romain Guybd0f6c82009-11-09 21:03:58 -080064 android:focusable="true"
65 android:clickable="true" />
66
Romain Guy3af60012010-04-05 18:39:24 -070067 <com.android.launcher2.ClippedImageView
Romain Guybd0f6c82009-11-09 21:03:58 -080068 android:id="@+id/next_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080069 android:layout_width="93dip"
Romain Guybd0f6c82009-11-09 21:03:58 -080070 android:layout_height="@dimen/button_bar_height"
71 android:layout_gravity="bottom|right"
72 android:layout_marginRight="6dip"
73
Joe Onorato8b5eef72010-03-29 16:19:42 -070074 android:scaleType="center"
Romain Guybd0f6c82009-11-09 21:03:58 -080075 android:src="@drawable/home_arrows_right"
76
77 android:onClick="nextScreen"
78
Romain Guy3af60012010-04-05 18:39:24 -070079 launcher:ignoreZone="-56dip"
80
Romain Guybd0f6c82009-11-09 21:03:58 -080081 android:focusable="true"
82 android:clickable="true" />
83
Joe Onoratoa5902522009-07-30 13:37:37 -070084 <com.android.launcher2.DeleteZone
The Android Open Source Project31dd5032009-03-03 19:32:27 -080085 android:id="@+id/delete_zone"
Daniel Sandlere1d923a2010-04-28 14:01:54 -040086 android:layout_width="@dimen/delete_zone_size"
87 android:layout_height="@dimen/delete_zone_size"
88 android:paddingLeft="@dimen/delete_zone_padding"
Daniel Sandlerc9b18772010-04-22 14:37:59 -040089 android:layout_marginBottom="@dimen/half_status_bar_height"
Joe Onorato57a7aaa2010-02-02 08:31:50 -080090 android:layout_gravity="right|center_vertical"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080091
92 android:scaleType="center"
Michael Jurka577d0172010-12-17 20:04:50 -080093 android:drawableLeft="@drawable/delete_zone_selector"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080094 android:visibility="invisible"
Joe Onorato5779e2a2009-10-06 13:19:30 -070095 launcher:direction="vertical"
96 />
The Android Open Source Project31dd5032009-03-03 19:32:27 -080097
Daniel Sandlerc9b18772010-04-22 14:37:59 -040098 <RelativeLayout
99 android:id="@+id/all_apps_button_cluster"
100 android:layout_height="fill_parent"
101 android:layout_width="@dimen/button_bar_height_portrait"
102 android:layout_gravity="right|center_vertical"
103 android:layout_marginBottom="@dimen/half_status_bar_height"
Daniel Sandlerc9b18772010-04-22 14:37:59 -0400104 >
105
106 <com.android.launcher2.HandleView
107 style="@style/HotseatButton"
108 android:id="@+id/all_apps_button"
Daniel Sandler786ae542010-04-28 00:09:19 -0400109 android:layout_centerVertical="true"
110 android:layout_alignParentRight="true"
Daniel Sandlerc9b18772010-04-22 14:37:59 -0400111
112 android:src="@drawable/all_apps_button"
113 launcher:direction="vertical"
114 />
115
116 <ImageView
117 android:id="@+id/hotseat_left"
118 style="@style/HotseatButton.Left"
119 android:layout_below="@id/all_apps_button"
120
121 android:src="@drawable/hotseat_phone"
122
123 android:onClick="launchHotSeat"
124 />
125
126 <ImageView
127 android:id="@+id/hotseat_right"
128 style="@style/HotseatButton.Right"
129 android:layout_above="@id/all_apps_button"
130
131 android:src="@drawable/hotseat_browser"
132
133 android:onClick="launchHotSeat"
134 />
135
136 </RelativeLayout>
Joe Onoratoa5902522009-07-30 13:37:37 -0700137</com.android.launcher2.DragLayer>