blob: 6cd8e889615eacdf5f401c500d4be30b495f69f7 [file] [log] [blame]
Michael Jurka9c6fbed2011-03-02 17:41:34 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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<RelativeLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
19
20 <!-- Global search icon -->
21 <ImageView
22 android:id="@+id/search_button"
23 android:layout_width="wrap_content"
24 android:layout_height="wrap_content"
25 android:layout_alignParentTop="true"
26 android:layout_alignParentLeft="true"
27 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
28 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
29 android:paddingTop="@dimen/toolbar_button_vertical_padding"
30 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
31 android:src="@drawable/ic_generic_search"
32 android:background="@drawable/button_bg"
33 android:onClick="onClickSearchButton"
34 android:focusable="true"
35 android:clickable="true" />
36
37 <ImageView
38 android:id="@+id/search_divider"
39 android:src="@drawable/divider_launcher_holo"
40 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
42 android:layout_toRightOf="@id/search_button"
43 android:paddingTop="@dimen/toolbar_button_vertical_padding"
44 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
45
46 android:onClick="onClickSearchButton"
47 android:focusable="false"
48 android:clickable="true" />
49
50 <!-- Voice search icon -->
51 <ImageView
52 android:id="@+id/voice_button"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_toRightOf="@id/search_divider"
56 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
57 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
58 android:paddingTop="@dimen/toolbar_button_vertical_padding"
59 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
60 android:src="@drawable/ic_voice_search"
61 android:background="@drawable/button_bg"
62 android:onClick="onClickVoiceButton"
63 android:focusable="true"
64 android:clickable="true"/>
65
66 <ImageView
67 android:id="@+id/configure_button"
68 android:src="@drawable/ic_home_add_holo_dark"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:layout_alignParentTop="true"
72 android:layout_alignParentRight="true"
73 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
74 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
75 android:paddingTop="@dimen/toolbar_button_vertical_padding"
76 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
77 android:background="@drawable/button_bg"
78
79 android:focusable="true"
80 android:clickable="true" />
81 <ImageView
82 android:id="@+id/divider"
83 android:src="@drawable/divider_launcher_holo"
84 android:layout_width="wrap_content"
85 android:layout_height="match_parent"
86 android:layout_toLeftOf="@id/configure_button"
87 android:paddingTop="@dimen/toolbar_button_vertical_padding"
88 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
89
90 android:focusable="false"
91 android:clickable="true" />
92 <TextView
93 android:id="@+id/all_apps_button"
94 android:text="@string/all_apps_button_label"
95 android:drawablePadding="@dimen/all_apps_button_drawable_padding"
96 android:drawableLeft="@drawable/ic_home_all_apps_holo_dark"
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 android:layout_toLeftOf="@id/divider"
100 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
101 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
102 android:paddingTop="@dimen/all_apps_button_vertical_padding"
103 android:paddingBottom="@dimen/all_apps_button_vertical_padding"
104 android:background="@drawable/button_bg"
105
106 android:gravity="center_horizontal|center_vertical"
107 android:textColor="#CCFFFFFF"
108 android:textSize="18sp"
109
110 android:shadowColor="#DA000000"
111 android:shadowDx="0.0"
112 android:shadowDy="0.0"
113 android:shadowRadius="2.5"
114
115 android:focusable="true"
116 android:clickable="true" />
117 <ImageView
118 android:id="@+id/divider_during_drag"
119 android:src="@drawable/divider_launcher_holo"
120 android:layout_width="wrap_content"
121 android:layout_height="match_parent"
122 android:layout_toLeftOf="@id/configure_button"
123 android:paddingTop="@dimen/toolbar_button_vertical_padding"
124 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
125 android:visibility="gone" />
126 <com.android.launcher2.DeleteZone
127 android:id="@+id/delete_zone"
128 android:text="@string/delete_zone_label_workspace"
129 android:drawablePadding="@dimen/delete_zone_drawable_padding"
130 android:drawableLeft="@drawable/delete_zone_selector"
131 android:layout_width="wrap_content"
132 android:layout_height="wrap_content"
133 android:layout_alignRight="@id/configure_button"
134 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
135 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
136 android:paddingTop="@dimen/toolbar_button_vertical_padding"
137 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
138 android:background="@drawable/button_bg"
139
140 android:gravity="center_horizontal|center_vertical"
141 android:textColor="@color/workspace_all_apps_and_delete_zone_text_color"
142 android:textSize="18sp"
143 android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
144 android:shadowDx="0.0"
145 android:shadowDy="0.0"
146 android:shadowRadius="2.0"
147
148 android:visibility="gone"
149 launcher:direction="horizontal" />
150</RelativeLayout>