blob: 62115f7868177bcfef0e359382adf7c2341bf643 [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"
32 android:src="@drawable/ic_generic_search"
33 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"
63 android:src="@drawable/ic_voice_search"
64 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"
74 android:text="@string/all_apps_button_label"
75 android:drawablePadding="@dimen/all_apps_button_drawable_padding"
76 android:drawableLeft="@drawable/ic_home_all_apps_holo_dark"
77 android:layout_width="wrap_content"
78 android:layout_height="wrap_content"
Winson Chung97d85d22011-04-13 11:27:36 -070079 android:layout_toLeftOf="@+id/all_apps_divider"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080080 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
81 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
82 android:paddingTop="@dimen/all_apps_button_vertical_padding"
83 android:paddingBottom="@dimen/all_apps_button_vertical_padding"
Winson Chung20ac28b2011-04-13 15:09:01 -070084 android:background="@drawable/button_bg"
Michael Jurka9c6fbed2011-03-02 17:41:34 -080085
86 android:gravity="center_horizontal|center_vertical"
87 android:textColor="#CCFFFFFF"
88 android:textSize="18sp"
89
Winson Chung30882dd2011-03-04 10:04:49 -080090 launcher:strokeColor="#991e3157"
91 launcher:strokeTextColor="#DDFFFFFF"
92 launcher:strokeWidth="2.5"
93
Michael Jurka9c6fbed2011-03-02 17:41:34 -080094 android:shadowColor="#DA000000"
95 android:shadowDx="0.0"
96 android:shadowDy="0.0"
97 android:shadowRadius="2.5"
98
99 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -0700100 android:clickable="true"
101 android:contentDescription="@string/accessibility_all_apps_button" />
Winson Chung97d85d22011-04-13 11:27:36 -0700102
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800103 <ImageView
Winson Chung97d85d22011-04-13 11:27:36 -0700104 android:id="@+id/all_apps_divider"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800105 android:src="@drawable/divider_launcher_holo"
106 android:layout_width="wrap_content"
107 android:layout_height="match_parent"
Winson Chung97d85d22011-04-13 11:27:36 -0700108 android:layout_toLeftOf="@+id/configure_button"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800109 android:paddingTop="@dimen/toolbar_button_vertical_padding"
110 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
Winson Chung97d85d22011-04-13 11:27:36 -0700111
112 android:focusable="false"
113 android:clickable="true" />
114
115 <!-- Customize icon -->
116 <ImageView
117 android:id="@+id/configure_button"
118 android:src="@drawable/ic_home_add_holo_dark"
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:layout_alignParentTop="true"
122 android:layout_alignParentRight="true"
123 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
124 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
125 android:paddingTop="@dimen/toolbar_button_vertical_padding"
126 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
127 android:background="@drawable/button_bg"
128 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -0700129 android:contentDescription="@string/accessibility_customize_button" />
Winson Chung97d85d22011-04-13 11:27:36 -0700130
131 <!-- Delete icon -->
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800132 <com.android.launcher2.DeleteZone
133 android:id="@+id/delete_zone"
134 android:text="@string/delete_zone_label_workspace"
135 android:drawablePadding="@dimen/delete_zone_drawable_padding"
136 android:drawableLeft="@drawable/delete_zone_selector"
137 android:layout_width="wrap_content"
138 android:layout_height="wrap_content"
Winson Chung97d85d22011-04-13 11:27:36 -0700139 android:layout_alignRight="@+id/configure_button"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800140 android:paddingLeft="@dimen/toolbar_button_horizontal_padding"
141 android:paddingRight="@dimen/toolbar_button_horizontal_padding"
142 android:paddingTop="@dimen/toolbar_button_vertical_padding"
143 android:paddingBottom="@dimen/toolbar_button_vertical_padding"
Winson Chung97d85d22011-04-13 11:27:36 -0700144 android:background="@drawable/button_bg"
Michael Jurka9c6fbed2011-03-02 17:41:34 -0800145
146 android:gravity="center_horizontal|center_vertical"
147 android:textColor="@color/workspace_all_apps_and_delete_zone_text_color"
148 android:textSize="18sp"
149 android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
150 android:shadowDx="0.0"
151 android:shadowDy="0.0"
152 android:shadowRadius="2.0"
153
154 android:visibility="gone"
Winson Chung97d85d22011-04-13 11:27:36 -0700155 launcher:direction="horizontal"
156
157 android:focusable="true"
Winson Chung20ac28b2011-04-13 15:09:01 -0700158 android:contentDescription="@string/accessibility_delete_button" />
Winson Chung97d85d22011-04-13 11:27:36 -0700159</RelativeLayout>