• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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
17<com.android.launcher2.DragLayer
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher2"
20
21    android:id="@+id/drag_layer"
22    android:layout_width="fill_parent"
23    android:layout_height="fill_parent">
24
25    <com.android.launcher2.AllAppsView
26        android:id="@+id/all_apps_view"
27        android:layout_width="fill_parent"
28        android:layout_height="fill_parent"
29
30        android:scrollbarStyle="outsideInset"
31        android:drawSelectorOnTop="false"
32        android:listSelector="@drawable/grid_selector"
33
34        android:verticalSpacing="10dip"
35        android:numColumns="4" />
36
37    <!-- The workspace contains 3 screens of cells -->
38    <com.android.launcher2.Workspace
39        android:id="@+id/workspace"
40        android:layout_width="fill_parent"
41        android:layout_height="fill_parent"
42        android:scrollbars="horizontal"
43        android:fadeScrollbars="true"
44        launcher:defaultScreen="2">
45
46        <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
47        <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
48        <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
49        <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
50        <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
51
52    </com.android.launcher2.Workspace>
53
54    <ImageView
55        android:id="@+id/previous_screen"
56        android:layout_width="53dip"
57        android:layout_height="@dimen/button_bar_height"
58        android:layout_gravity="bottom|left"
59        android:layout_marginLeft="6dip"
60
61        android:src="@drawable/home_arrows_left"
62
63        android:onClick="previousScreen"
64
65        android:focusable="true"
66        android:clickable="true" />
67
68    <ImageView
69        android:id="@+id/next_screen"
70        android:layout_width="53dip"
71        android:layout_height="@dimen/button_bar_height"
72        android:layout_gravity="bottom|right"
73        android:layout_marginRight="6dip"
74
75        android:src="@drawable/home_arrows_right"
76
77        android:onClick="nextScreen"
78
79        android:focusable="true"
80        android:clickable="true" />
81
82    <com.android.launcher2.HandleView
83        android:id="@+id/all_apps_button"
84        android:layout_width="@dimen/button_bar_height"
85        android:layout_height="fill_parent"
86        android:layout_gravity="right|center_vertical"
87
88        android:focusable="true"
89        android:clickable="true"
90
91        android:scaleType="center"
92        android:src="@drawable/all_apps_button"
93        launcher:direction="vertical"
94        />
95
96    <com.android.launcher2.DeleteZone
97        android:id="@+id/delete_zone"
98        android:layout_width="49dip"
99        android:layout_height="fill_parent"
100
101        android:scaleType="center"
102        android:src="@drawable/delete_zone_selector"
103        android:visibility="invisible"
104        launcher:direction="vertical"
105        />
106
107</com.android.launcher2.DragLayer>
108