blob: f73e91c5d26ede565c2e233727081feffee4dbfa [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"
Joe Onoratoa5902522009-07-30 13:37:37 -070019 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher2"
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
Joe Onorato7c312c12009-08-13 21:36:53 -070025 <com.android.launcher2.AllAppsView
26 android:id="@+id/all_apps_view"
Romain Guy8f19cdd2010-01-08 15:07:00 -080027 android:layout_width="match_parent"
28 android:layout_height="match_parent"
Joe Onorato7c312c12009-08-13 21:36:53 -070029
30 android:scrollbarStyle="outsideInset"
31 android:drawSelectorOnTop="false"
32 android:listSelector="@drawable/grid_selector"
33
34 android:verticalSpacing="10dip"
Joe Onorato5779e2a2009-10-06 13:19:30 -070035 android:numColumns="4"
36 />
Joe Onorato7c312c12009-08-13 21:36:53 -070037
The Android Open Source Project31dd5032009-03-03 19:32:27 -080038 <!-- The workspace contains 3 screens of cells -->
Joe Onoratoa5902522009-07-30 13:37:37 -070039 <com.android.launcher2.Workspace
The Android Open Source Project31dd5032009-03-03 19:32:27 -080040 android:id="@+id/workspace"
Romain Guy8f19cdd2010-01-08 15:07:00 -080041 android:layout_width="match_parent"
42 android:layout_height="match_parent"
Mike Cleron3a2b3f22009-11-05 17:17:42 -080043 launcher:defaultScreen="2">
The Android Open Source Project31dd5032009-03-03 19:32:27 -080044
45 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
46 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
47 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
Mike Cleron3a2b3f22009-11-05 17:17:42 -080048 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
49 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
50
Joe Onoratoa5902522009-07-30 13:37:37 -070051 </com.android.launcher2.Workspace>
The Android Open Source Project31dd5032009-03-03 19:32:27 -080052
Romain Guy8a73c512009-11-09 19:19:59 -080053 <ImageView
54 android:id="@+id/previous_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080055 android:layout_width="93dip"
Romain Guy8a73c512009-11-09 19:19:59 -080056 android:layout_height="@dimen/button_bar_height"
57 android:layout_gravity="bottom|left"
58 android:layout_marginLeft="6dip"
59
60 android:src="@drawable/home_arrows_left"
61
62 android:onClick="previousScreen"
63
64 android:focusable="true"
65 android:clickable="true" />
66
67 <ImageView
68 android:id="@+id/next_screen"
Romain Guy2c0a7ae2009-11-13 19:40:33 -080069 android:layout_width="93dip"
Romain Guy8a73c512009-11-09 19:19:59 -080070 android:layout_height="@dimen/button_bar_height"
71 android:layout_gravity="bottom|right"
72 android:layout_marginRight="6dip"
73
74 android:src="@drawable/home_arrows_right"
75
76 android:onClick="nextScreen"
77
78 android:focusable="true"
79 android:clickable="true" />
80
Joe Onorato85a02a82009-09-08 12:34:22 -070081 <com.android.launcher2.HandleView
82 android:id="@+id/all_apps_button"
Romain Guy8a73c512009-11-09 19:19:59 -080083 android:layout_width="wrap_content"
Joe Onorato85a02a82009-09-08 12:34:22 -070084 android:layout_height="@dimen/button_bar_height"
85 android:layout_gravity="bottom|center_horizontal"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080086
Joe Onorato85a02a82009-09-08 12:34:22 -070087 android:focusable="true"
88 android:clickable="true"
The Android Open Source Project31dd5032009-03-03 19:32:27 -080089
Joe Onorato85a02a82009-09-08 12:34:22 -070090 android:scaleType="center"
91 android:src="@drawable/all_apps_button"
Joe Onorato5779e2a2009-10-06 13:19:30 -070092 launcher:direction="horizontal"
93 />
The Android Open Source Project31dd5032009-03-03 19:32:27 -080094
Joe Onoratoa5902522009-07-30 13:37:37 -070095 <com.android.launcher2.DeleteZone
The Android Open Source Project31dd5032009-03-03 19:32:27 -080096 android:id="@+id/delete_zone"
Romain Guy8a73c512009-11-09 19:19:59 -080097 android:layout_width="wrap_content"
98 android:layout_height="@dimen/button_bar_height"
Joe Onorato85a02a82009-09-08 12:34:22 -070099 android:layout_gravity="bottom|center_horizontal"
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800100
101 android:scaleType="center"
Joe Onoratoa9c28f62009-09-14 18:38:49 -0400102 android:src="@drawable/delete_zone_selector"
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800103 android:visibility="invisible"
Joe Onorato5779e2a2009-10-06 13:19:30 -0700104 launcher:direction="horizontal"
105 />
The Android Open Source Project31dd5032009-03-03 19:32:27 -0800106
Joe Onoratoa5902522009-07-30 13:37:37 -0700107</com.android.launcher2.DragLayer>