• 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
38    <!-- The workspace contains 3 screens of cells -->
39    <com.android.launcher2.Workspace
40        android:id="@+id/workspace"
41        android:layout_width="fill_parent"
42        android:layout_height="fill_parent"
43        launcher:defaultScreen="2">
44
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" />
48        <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
49        <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
50
51    </com.android.launcher2.Workspace>
52
53    <ImageView
54        android:id="@+id/previous_screen"
55        android:layout_width="53dip"
56        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"
69        android:layout_width="53dip"
70        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
81    <com.android.launcher2.HandleView
82        android:id="@+id/all_apps_button"
83        android:layout_width="wrap_content"
84        android:layout_height="@dimen/button_bar_height"
85        android:layout_gravity="bottom|center_horizontal"
86
87        android:focusable="true"
88        android:clickable="true"
89
90        android:scaleType="center"
91        android:src="@drawable/all_apps_button"
92        launcher:direction="horizontal"
93        />
94
95    <com.android.launcher2.DeleteZone
96        android:id="@+id/delete_zone"
97        android:layout_width="wrap_content"
98        android:layout_height="@dimen/button_bar_height"
99        android:layout_gravity="bottom|center_horizontal"
100
101        android:scaleType="center"
102        android:src="@drawable/delete_zone_selector"
103        android:visibility="invisible"
104        launcher:direction="horizontal"
105        />
106
107</com.android.launcher2.DragLayer>
108