blob: 2b434423dbecd262f2cb6cbcd30d44eb2f00ca7b [file] [log] [blame]
Michael Jurkaaf442092010-06-10 17:01:57 -07001<?xml version="1.0" encoding="utf-8"?>
Patrick Dubroydea9e932010-09-22 15:04:29 -07002<!-- Copyright (C) 2010 The Android Open Source Project
Michael Jurkaaf442092010-06-10 17:01:57 -07003
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.launcher"
20
21 android:id="@+id/drag_layer"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent">
24
Patrick Dubroy558654c2010-07-23 16:48:11 -070025 <include
26 layout="@layout/all_apps_tabbed"
27 android:id="@+id/all_apps_view"
28 android:layout_width="match_parent"
Winson Chung80baf5a2010-08-09 16:03:15 -070029 android:layout_height="550dip"
Patrick Dubroy558654c2010-07-23 16:48:11 -070030 android:layout_gravity="top"/>
Michael Jurkaaf442092010-06-10 17:01:57 -070031
32 <!-- The workspace contains 5 screens of cells -->
33 <com.android.launcher2.Workspace
34 android:id="@+id/workspace"
35 android:layout_width="match_parent"
36 android:layout_height="match_parent"
Adam Powell201058d2010-09-09 17:57:26 -070037 android:paddingTop="?android:attr/actionBarSize"
Michael Jurka54dd7542010-07-30 14:47:52 -070038 launcher:defaultScreen="2"
Adam Cohend22015c2010-07-26 22:02:18 -070039 launcher:cellCountX="8"
Adam Cohenda4dc5e2010-08-10 22:11:35 -070040 launcher:cellCountY="7">
Michael Jurkaaf442092010-06-10 17:01:57 -070041
42 <include android:id="@+id/cell1" layout="@layout/workspace_screen" />
43 <include android:id="@+id/cell2" layout="@layout/workspace_screen" />
44 <include android:id="@+id/cell3" layout="@layout/workspace_screen" />
45 <include android:id="@+id/cell4" layout="@layout/workspace_screen" />
46 <include android:id="@+id/cell5" layout="@layout/workspace_screen" />
Michael Jurkaaf442092010-06-10 17:01:57 -070047 </com.android.launcher2.Workspace>
48
Michael Jurkaaf442092010-06-10 17:01:57 -070049 <RelativeLayout
50 android:id="@+id/all_apps_button_cluster"
Patrick Dubroy6b509c12010-08-23 15:08:16 -070051 android:layout_width="fill_parent"
Adam Powell201058d2010-09-09 17:57:26 -070052 android:layout_height="?android:attr/actionBarSize"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -070053 android:layout_gravity="top">
Patrick Dubroy6b509c12010-08-23 15:08:16 -070054
55 <ImageView
56 android:id="@+id/search_button"
Patrick Dubroy6b509c12010-08-23 15:08:16 -070057 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -070058 android:layout_height="match_parent"
Patrick Dubroy6b509c12010-08-23 15:08:16 -070059 android:layout_gravity="left"
Winson Chung5aa323f2010-09-08 12:05:15 -070060 android:layout_marginLeft="@dimen/toolbar_button_spacing"
Patrick Dubroy6b509c12010-08-23 15:08:16 -070061
62 android:onClick="onClickSearchButton"
63 android:focusable="true"
64 android:clickable="true"/>
Adam Cohenda4dc5e2010-08-10 22:11:35 -070065
Michael Jurka0e260592010-06-30 17:07:39 -070066 <ImageView
Patrick Dubroy67f7f432010-10-04 17:45:43 -070067 android:id="@+id/configure_button"
68 android:src="@drawable/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -070069 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -070070 android:layout_height="match_parent"
Patrick Dubroy4ed62782010-08-17 15:11:18 -070071 android:layout_alignParentRight="true"
Patrick Dubroy6b509c12010-08-23 15:08:16 -070072 android:layout_marginLeft="@dimen/toolbar_button_spacing"
Winson Chung5aa323f2010-09-08 12:05:15 -070073 android:layout_marginRight="@dimen/toolbar_button_spacing"
Patrick Dubroy4ed62782010-08-17 15:11:18 -070074
Patrick Dubroy67f7f432010-10-04 17:45:43 -070075 android:onClick="onClickConfigureButton"
76 android:focusable="true"
77 android:clickable="true" />
78
79 <TextView
80 android:id="@+id/all_apps_button"
81 android:text="@string/all_apps_button_label"
82 android:background="@drawable/all_apps_button"
83 android:layout_width="wrap_content"
84 android:layout_height="match_parent"
85 android:layout_toLeftOf="@id/configure_button"
86 android:layout_marginLeft="@dimen/toolbar_button_spacing"
87 android:layout_marginRight="@dimen/toolbar_button_spacing"
88 android:textSize="18dip"
89
Patrick Dubroy4ed62782010-08-17 15:11:18 -070090 android:onClick="onClickAllAppsButton"
91 android:focusable="true"
92 android:clickable="true" />
93
Patrick Dubroy6b509c12010-08-23 15:08:16 -070094 <!-- The button to bring up the installed app market.
95 The icon for this button will be dynamically set. -->
96 <ImageView
97 android:id="@+id/market_button"
98 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -070099 android:layout_height="match_parent"
Patrick Dubroy6b509c12010-08-23 15:08:16 -0700100 android:layout_alignLeft="@id/all_apps_button"
101
Patrick Dubroyceae05d2010-08-30 10:40:53 -0700102 android:onClick="onClickAppMarketButton"
Patrick Dubroy6b509c12010-08-23 15:08:16 -0700103 android:focusable="false"
104 android:clickable="false"
105 android:visibility="gone"/>
106
Michael Jurka4cb37242010-08-09 21:05:32 -0700107 <com.android.launcher2.DeleteZone
108 android:id="@+id/delete_zone"
Patrick Dubroy6b509c12010-08-23 15:08:16 -0700109 android:src="@drawable/delete_zone_selector"
Michael Jurka4cb37242010-08-09 21:05:32 -0700110 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -0700111 android:layout_height="match_parent"
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700112 android:layout_alignLeft="@id/all_apps_button"
Michael Jurka4cb37242010-08-09 21:05:32 -0700113
Michael Jurka4cb37242010-08-09 21:05:32 -0700114 android:visibility="gone"
115 launcher:direction="horizontal" />
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700116
117 <com.android.launcher2.ApplicationInfoDropTarget
118 android:id="@+id/info_button"
119 android:src="@drawable/info_button"
Michael Jurka2c3af5f2010-08-03 13:53:20 -0700120 android:layout_width="wrap_content"
Patrick Dubroy9f7aec82010-09-06 11:03:37 -0700121 android:layout_height="match_parent"
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700122 android:layout_alignLeft="@id/configure_button"
Michael Jurka0e260592010-06-30 17:07:39 -0700123
Patrick Dubroy6b509c12010-08-23 15:08:16 -0700124 android:visibility="gone"
Michael Jurka0e260592010-06-30 17:07:39 -0700125 android:focusable="true"
126 android:clickable="true" />
Patrick Dubroy4ed62782010-08-17 15:11:18 -0700127
Michael Jurkaaf442092010-06-10 17:01:57 -0700128 </RelativeLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700129
130 <TabHost
131 android:id="@android:id/tabhost"
Michael Jurkaaf442092010-06-10 17:01:57 -0700132 android:layout_width="match_parent"
Winson Chunge3193b92010-09-10 11:44:42 -0700133 android:layout_height="500dip"
Patrick Dubroy3ec8bdd2010-08-06 16:01:33 -0700134 android:layout_gravity="bottom">
Patrick Dubroy558654c2010-07-23 16:48:11 -0700135 <LinearLayout
136 android:orientation="vertical"
Winson Chung80baf5a2010-08-09 16:03:15 -0700137 android:background="#40000000"
Patrick Dubroy558654c2010-07-23 16:48:11 -0700138 android:layout_width="match_parent"
139 android:layout_height="match_parent">
140 <TabWidget
141 android:id="@android:id/tabs"
Winson Chung80baf5a2010-08-09 16:03:15 -0700142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:layout_gravity="center_horizontal"
145 android:tabStripEnabled="false"
146 android:paddingBottom="10dp" />
Patrick Dubroy558654c2010-07-23 16:48:11 -0700147 <FrameLayout
148 android:id="@android:id/tabcontent"
Patrick Dubroy558654c2010-07-23 16:48:11 -0700149 android:layout_width="match_parent"
150 android:layout_height="match_parent">
Patrick Dubroy558654c2010-07-23 16:48:11 -0700151 </FrameLayout>
152 </LinearLayout>
Michael Jurka0e260592010-06-30 17:07:39 -0700153 </TabHost>
Michael Jurkaaf442092010-06-10 17:01:57 -0700154</com.android.launcher2.DragLayer>