blob: efe9e138ab89bfd235019578e2b042907410f32f [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"
Winson Chung97d85d22011-04-13 11:27:36 -070018 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
19 android:focusable="false">
Michael Jurka9c6fbed2011-03-02 17:41:34 -080020
21 <!-- Global search icon -->
22 <ImageView
Winson Chung97d85d22011-04-13 11:27:36 -070023 android:id="@+id/search_button"
24 android:layout_width="wrap_content"
25 android:layout_height="wrap_content"
26 android:layout_alignParentTop="true"
27 android:layout_alignParentLeft="true"
28 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
29 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
30 android:paddingTop="@dimen/toolbar_button_vertical_padding"
31 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
Winson Chung649723c2011-07-06 20:41:23 -070032 android:src="@drawable/ic_search_normal_holo"
Winson Chung97d85d22011-04-13 11:27:36 -070033 android:background="@drawable/button_bg"
34 android:onClick="onClickSearchButton"
35
36 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -070037 android:clickable="true"
38 android:contentDescription="@string/accessibility_search_button" />
Michael Jurka9c6fbed2011-03-02 17:41:34 -080039
40 <ImageView
41 android:id="@+id/search_divider"
42 android:src="@drawable/divider_launcher_holo"
43 android:layout_width="wrap_content"
44 android:layout_height="match_parent"
Winson Chung97d85d22011-04-13 11:27:36 -070045 android:layout_toRightOf="@+id/search_button"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080046 android:paddingTop="@dimen/toolbar_button_vertical_padding"
47 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
48
49 android:onClick="onClickSearchButton"
50 android:focusable="false"
51 android:clickable="true" />
52
53 <!-- Voice search icon -->
54 <ImageView
55 android:id="@+id/voice_button"
56 android:layout_width="wrap_content"
57 android:layout_height="wrap_content"
Winson Chung97d85d22011-04-13 11:27:36 -070058 android:layout_toRightOf="@+id/search_divider"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080059 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
60 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
61 android:paddingTop="@dimen/toolbar_button_vertical_padding"
62 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
Winson Chung649723c2011-07-06 20:41:23 -070063 android:src="@drawable/ic_voice_search_holo"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080064 android:background="@drawable/button_bg"
65 android:onClick="onClickVoiceButton"
Winson Chung97d85d22011-04-13 11:27:36 -070066
Michael Jurka9c6fbed2011-03-02 17:41:34 -080067 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -070068 android:clickable="true"
69 android:contentDescription="@string/accessibility_voice_search_button" />
Michael Jurka9c6fbed2011-03-02 17:41:34 -080070
Winson Chung97d85d22011-04-13 11:27:36 -070071 <!-- AllApps icon -->
Winson Chung30882dd2011-03-04 10:04:49 -080072 <com.android.launcher2.StrokedTextView
Michael Jurka9c6fbed2011-03-02 17:41:34 -080073 android:id="@+id/all_apps_button"
Winson Chung4c98d922011-05-31 16:50:48 -070074 android:onClick="onClickAllAppsButton"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080075 android:text="@string/all_apps_button_label"
76 android:drawablePadding="@dimen/all_apps_button_drawable_padding"
77 android:drawableLeft="@drawable/ic_home_all_apps_holo_dark"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
Winson Chung97d85d22011-04-13 11:27:36 -070080 android:layout_toLeftOf="@+id/all_apps_divider"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080081 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
82 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
83 android:paddingTop="@dimen/all_apps_button_vertical_padding"
84 android:paddingBottom="@dimen/all_apps_button_vertical_padding"
Winson Chung20ac28b2011-04-13 15:09:01 -070085 android:background="@drawable/button_bg"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080086
87 android:gravity="center_horizontal|center_vertical"
88 android:textColor="#CCFFFFFF"
89 android:textSize="18sp"
90
Winson Chung30882dd2011-03-04 10:04:49 -080091 launcher:strokeColor="#991e3157"
92 launcher:strokeTextColor="#DDFFFFFF"
93 launcher:strokeWidth="2.5"
94
Michael Jurka9c6fbed2011-03-02 17:41:34 -080095 android:shadowColor="#DA000000"
96 android:shadowDx="0.0"
97 android:shadowDy="0.0"
98 android:shadowRadius="2.5"
99
100 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -0700101 android:clickable="true"
102 android:contentDescription="@string/accessibility_all_apps_button" />
Winson Chung97d85d22011-04-13 11:27:36 -0700103
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800104 <ImageView
Winson Chung97d85d22011-04-13 11:27:36 -0700105 android:id="@+id/all_apps_divider"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800106 android:src="@drawable/divider_launcher_holo"
Winson Chung4c98d922011-05-31 16:50:48 -0700107 android:onClick="onClickAllAppsButton"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800108 android:layout_width="wrap_content"
109 android:layout_height="match_parent"
Winson Chung97d85d22011-04-13 11:27:36 -0700110 android:layout_toLeftOf="@+id/configure_button"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800111 android:paddingTop="@dimen/toolbar_button_vertical_padding"
112 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
Winson Chung97d85d22011-04-13 11:27:36 -0700113
114 android:focusable="false"
115 android:clickable="true" />
116
117 <!-- Customize icon -->
118 <ImageView
119 android:id="@+id/configure_button"
120 android:src="@drawable/ic_home_add_holo_dark"
Winson Chung4c98d922011-05-31 16:50:48 -0700121 android:onClick="onClickConfigureButton"
Winson Chung97d85d22011-04-13 11:27:36 -0700122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:layout_alignParentTop="true"
125 android:layout_alignParentRight="true"
126 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
127 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
128 android:paddingTop="@dimen/toolbar_button_vertical_padding"
129 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
130 android:background="@drawable/button_bg"
131 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -0700132 android:contentDescription="@string/accessibility_customize_button" />
Winson Chung97d85d22011-04-13 11:27:36 -0700133
134 <!-- Delete icon -->
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800135 <com.android.launcher2.DeleteZone
136 android:id="@+id/delete_zone"
137 android:text="@string/delete_zone_label_workspace"
138 android:drawablePadding="@dimen/delete_zone_drawable_padding"
Winson Chung967289b2011-06-30 18:09:30 -0700139 android:drawableLeft="@drawable/delete_target_selector"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800140 android:layout_width="wrap_content"
141 android:layout_height="wrap_content"
Winson Chung97d85d22011-04-13 11:27:36 -0700142 android:layout_alignRight="@+id/configure_button"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800143 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
144 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
145 android:paddingTop="@dimen/toolbar_button_vertical_padding"
146 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
Winson Chung4c98d922011-05-31 16:50:48 -0700147 android:background="@drawable/button_bg"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800148
149 android:gravity="center_horizontal|center_vertical"
150 android:textColor="@color/workspace_all_apps_and_delete_zone_text_color"
151 android:textSize="18sp"
152 android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
153 android:shadowDx="0.0"
154 android:shadowDy="0.0"
155 android:shadowRadius="2.0"
156
157 android:visibility="gone"
Winson Chung97d85d22011-04-13 11:27:36 -0700158 launcher:direction="horizontal"
159
160 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -0700161 android:contentDescription="@string/accessibility_delete_button" />
Winson Chung97d85d22011-04-13 11:27:36 -0700162</RelativeLayout>