blob: d3ab7f5e96c8b3929c1dd0a66d6a6053069696f1 [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
Daniel Sandler388f6792010-03-02 14:08:08 -050025 <include layout="@layout/all_apps" />
Joe Onorato5779e2a2009-10-06 13:19:30 -070026
The Android Open Source Project31dd5032009-03-03 19:32:27 -080027 <!-- The workspace contains 3 screens of cells -->
Joe Onoratoa5902522009-07-30 13:37:37 -070028 <com.android.launcher2.Workspace
The Android Open Source Project31dd5032009-03-03 19:32:27 -080029 android:id="@+id/workspace"
Romain Guy8f19cdd2010-01-08 15:07:00 -080030 android:layout_width="match_parent"
31 android:layout_height="match_parent"
Mike Cleron3a2b3f22009-11-05 17:17:42 -080032 android:scrollbars="horizontal"
33 android:fadeScrollbars="true"
34 launcher:defaultScreen="2">
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
Romain Guybd0f6c82009-11-09 21:03:58 -080044 <ImageView
45 android:id="@+id/previous_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080046 android:layout_width="93dip"
Romain Guybd0f6c82009-11-09 21:03:58 -080047 android:layout_height="@dimen/button_bar_height"
48 android:layout_gravity="bottom|left"
49 android:layout_marginLeft="6dip"
50
51 android:src="@drawable/home_arrows_left"
52
53 android:onClick="previousScreen"
54
55 android:focusable="true"
56 android:clickable="true" />
57
58 <ImageView
59 android:id="@+id/next_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080060 android:layout_width="93dip"
Romain Guybd0f6c82009-11-09 21:03:58 -080061 android:layout_height="@dimen/button_bar_height"
62 android:layout_gravity="bottom|right"
63 android:layout_marginRight="6dip"
64
65 android:src="@drawable/home_arrows_right"
66
67 android:onClick="nextScreen"
68
69 android:focusable="true"
70 android:clickable="true" />
71
Joe Onorato7404ee42009-07-31 11:54:44 -070072 <com.android.launcher2.HandleView
Joe Onorato7c312c12009-08-13 21:36:53 -070073 android:id="@+id/all_apps_button"
Joe Onorato5779e2a2009-10-06 13:19:30 -070074 android:layout_width="@dimen/button_bar_height"
Joe Onorato57a7aaa2010-02-02 08:31:50 -080075 android:layout_height="wrap_content"
Joe Onorato5779e2a2009-10-06 13:19:30 -070076 android:layout_gravity="right|center_vertical"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080077
Joe Onorato7404ee42009-07-31 11:54:44 -070078 android:focusable="true"
79 android:clickable="true"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080080
Joe Onorato7404ee42009-07-31 11:54:44 -070081 android:scaleType="center"
Joe Onorato5779e2a2009-10-06 13:19:30 -070082 android:src="@drawable/all_apps_button"
83 launcher:direction="vertical"
84 />
The Android Open Source Project31dd5032009-03-03 19:32:27 -080085
Joe Onoratoa5902522009-07-30 13:37:37 -070086 <com.android.launcher2.DeleteZone
The Android Open Source Project31dd5032009-03-03 19:32:27 -080087 android:id="@+id/delete_zone"
Joe Onorato57a7aaa2010-02-02 08:31:50 -080088 android:layout_width="@dimen/button_bar_height"
Romain Guy8f19cdd2010-01-08 15:07:00 -080089 android:layout_height="match_parent"
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"
Joe Onorato5779e2a2009-10-06 13:19:30 -070093 android:src="@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
Joe Onoratoa5902522009-07-30 13:37:37 -070098</com.android.launcher2.DragLayer>