Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 1 | <?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 Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 18 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" |
| 19 | android:focusable="false"> |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 20 | |
| 21 | <!-- Global search icon --> |
| 22 | <ImageView |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 23 | 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 Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 32 | android:src="@drawable/ic_search_normal_holo" |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 33 | android:background="@drawable/button_bg" |
| 34 | android:onClick="onClickSearchButton" |
| 35 | |
| 36 | android:focusable="true" |
Winson Chung | 20ac28b | 2011-04-13 15:09:01 -0700 | [diff] [blame] | 37 | android:clickable="true" |
| 38 | android:contentDescription="@string/accessibility_search_button" /> |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 39 | |
| 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 Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 45 | android:layout_toRightOf="@+id/search_button" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 46 | 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 Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 58 | android:layout_toRightOf="@+id/search_divider" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 59 | 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 Chung | 649723c | 2011-07-06 20:41:23 -0700 | [diff] [blame] | 63 | android:src="@drawable/ic_voice_search_holo" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 64 | android:background="@drawable/button_bg" |
| 65 | android:onClick="onClickVoiceButton" |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 66 | |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 67 | android:focusable="true" |
Winson Chung | 20ac28b | 2011-04-13 15:09:01 -0700 | [diff] [blame] | 68 | android:clickable="true" |
| 69 | android:contentDescription="@string/accessibility_voice_search_button" /> |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 70 | |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 71 | <!-- AllApps icon --> |
Winson Chung | 30882dd | 2011-03-04 10:04:49 -0800 | [diff] [blame] | 72 | <com.android.launcher2.StrokedTextView |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 73 | android:id="@+id/all_apps_button" |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 74 | android:onClick="onClickAllAppsButton" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 75 | 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 Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 80 | android:layout_toLeftOf="@+id/all_apps_divider" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 81 | 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 Chung | 20ac28b | 2011-04-13 15:09:01 -0700 | [diff] [blame] | 85 | android:background="@drawable/button_bg" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 86 | |
| 87 | android:gravity="center_horizontal|center_vertical" |
| 88 | android:textColor="#CCFFFFFF" |
| 89 | android:textSize="18sp" |
| 90 | |
Winson Chung | 30882dd | 2011-03-04 10:04:49 -0800 | [diff] [blame] | 91 | launcher:strokeColor="#991e3157" |
| 92 | launcher:strokeTextColor="#DDFFFFFF" |
| 93 | launcher:strokeWidth="2.5" |
| 94 | |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 95 | android:shadowColor="#DA000000" |
| 96 | android:shadowDx="0.0" |
| 97 | android:shadowDy="0.0" |
| 98 | android:shadowRadius="2.5" |
| 99 | |
| 100 | android:focusable="true" |
Winson Chung | 20ac28b | 2011-04-13 15:09:01 -0700 | [diff] [blame] | 101 | android:clickable="true" |
| 102 | android:contentDescription="@string/accessibility_all_apps_button" /> |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 103 | |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 104 | <ImageView |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 105 | android:id="@+id/all_apps_divider" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 106 | android:src="@drawable/divider_launcher_holo" |
Winson Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 107 | android:onClick="onClickAllAppsButton" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 108 | android:layout_width="wrap_content" |
| 109 | android:layout_height="match_parent" |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 110 | android:layout_toLeftOf="@+id/configure_button" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 111 | android:paddingTop="@dimen/toolbar_button_vertical_padding" |
| 112 | android:paddingBottom="@dimen/toolbar_button_vertical_padding" |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 113 | |
| 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 Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 121 | android:onClick="onClickConfigureButton" |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 122 | 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 Chung | 20ac28b | 2011-04-13 15:09:01 -0700 | [diff] [blame] | 132 | android:contentDescription="@string/accessibility_customize_button" /> |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 133 | |
| 134 | <!-- Delete icon --> |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 135 | <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 Chung | 967289b | 2011-06-30 18:09:30 -0700 | [diff] [blame] | 139 | android:drawableLeft="@drawable/delete_target_selector" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 140 | android:layout_width="wrap_content" |
| 141 | android:layout_height="wrap_content" |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 142 | android:layout_alignRight="@+id/configure_button" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 143 | 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 Chung | 4c98d92 | 2011-05-31 16:50:48 -0700 | [diff] [blame] | 147 | android:background="@drawable/button_bg" |
Michael Jurka | 9c6fbed | 2011-03-02 17:41:34 -0800 | [diff] [blame] | 148 | |
| 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 Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 158 | launcher:direction="horizontal" |
| 159 | |
| 160 | android:focusable="true" |
Winson Chung | 20ac28b | 2011-04-13 15:09:01 -0700 | [diff] [blame] | 161 | android:contentDescription="@string/accessibility_delete_button" /> |
Winson Chung | 97d85d2 | 2011-04-13 11:27:36 -0700 | [diff] [blame] | 162 | </RelativeLayout> |