Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 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 | <com.android.launcher2.SearchDropTargetBar |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" |
| 19 | android:focusable="false"> |
| 20 | |
| 21 | <!-- Search buttons container --> |
| 22 | <RelativeLayout |
| 23 | style="@style/SearchDropTargetBar" |
| 24 | android:id="@+id/qsb_search_bar" |
| 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent"> |
| 27 | <!-- Global search icon --> |
| 28 | <ImageView |
| 29 | style="@style/SearchButton" |
| 30 | android:id="@+id/search_button" |
| 31 | android:layout_width="wrap_content" |
| 32 | android:layout_height="wrap_content" |
| 33 | android:layout_alignParentLeft="true" |
| 34 | android:layout_alignParentTop="true" |
| 35 | android:src="@drawable/ic_generic_search" |
| 36 | android:background="@drawable/button_bg" |
| 37 | android:onClick="onClickSearchButton" |
| 38 | android:focusable="true" |
| 39 | android:clickable="true" |
| 40 | android:contentDescription="@string/accessibility_search_button" /> |
| 41 | |
| 42 | <ImageView |
| 43 | style="@style/SearchButtonDivider" |
| 44 | android:id="@+id/search_divider" |
| 45 | android:layout_toRightOf="@+id/search_button" |
| 46 | android:src="@drawable/divider_launcher_holo" |
| 47 | android:onClick="onClickSearchButton" |
| 48 | android:focusable="false" |
| 49 | android:clickable="true" /> |
| 50 | |
| 51 | <!-- Voice search icon --> |
| 52 | <ImageView |
| 53 | style="@style/SearchButton" |
| 54 | android:id="@+id/voice_button" |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:layout_toRightOf="@+id/search_divider" |
| 58 | android:src="@drawable/ic_voice_search" |
| 59 | android:background="@drawable/button_bg" |
| 60 | android:onClick="onClickVoiceButton" |
| 61 | android:focusable="true" |
| 62 | android:clickable="true" |
| 63 | android:contentDescription="@string/accessibility_voice_search_button" /> |
| 64 | |
| 65 | <!-- AppsCustomize icon --> |
| 66 | <com.android.launcher2.StrokedTextView |
| 67 | android:id="@+id/all_apps_button" |
| 68 | android:onClick="onClickAllAppsButton" |
| 69 | android:drawableLeft="@drawable/ic_home_all_apps_holo_dark" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="wrap_content" |
| 72 | android:layout_alignParentRight="true" |
| 73 | android:layout_alignParentTop="true" |
| 74 | android:layout_toLeftOf="@+id/all_apps_divider" |
| 75 | android:paddingLeft="@dimen/toolbar_button_horizontal_padding" |
| 76 | android:paddingRight="@dimen/toolbar_button_horizontal_padding" |
| 77 | android:paddingTop="@dimen/all_apps_button_vertical_padding" |
| 78 | android:paddingBottom="@dimen/all_apps_button_vertical_padding" |
| 79 | android:background="@drawable/button_bg" |
| 80 | |
| 81 | android:gravity="center" |
| 82 | android:textColor="#CCFFFFFF" |
| 83 | android:textSize="18sp" |
| 84 | |
| 85 | launcher:strokeColor="#991e3157" |
| 86 | launcher:strokeTextColor="#DDFFFFFF" |
| 87 | launcher:strokeWidth="2.5" |
| 88 | |
| 89 | android:shadowColor="#DA000000" |
| 90 | android:shadowDx="0.0" |
| 91 | android:shadowDy="0.0" |
| 92 | android:shadowRadius="2.5" |
| 93 | |
| 94 | android:focusable="true" |
| 95 | android:clickable="true" |
| 96 | android:contentDescription="@string/accessibility_all_apps_button" /> |
| 97 | </RelativeLayout> |
| 98 | |
| 99 | <!-- Drag specific targets container --> |
| 100 | <LinearLayout |
| 101 | style="@style/SearchDropTargetBar" |
| 102 | android:id="@+id/drag_target_bar" |
| 103 | android:layout_width="match_parent" |
| 104 | android:layout_height="match_parent" |
| 105 | android:alpha="0"> |
| 106 | |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 107 | <com.android.launcher2.DeleteDropTarget |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 108 | style="@style/DropTargetButtonContainer" |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 109 | android:id="@+id/delete_target" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 110 | android:layout_weight="1"> |
| 111 | <!-- Delete target --> |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 112 | <TextView |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 113 | style="@style/DropTargetButton" |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 114 | android:id="@+id/delete_target_text" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 115 | android:text="@string/delete_zone_label_workspace" |
Winson Chung | 967289b | 2011-06-30 18:09:30 -0700 | [diff] [blame^] | 116 | android:drawableLeft="@drawable/delete_target_selector" /> |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 117 | </com.android.launcher2.DeleteDropTarget> |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 118 | |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 119 | <com.android.launcher2.InfoDropTarget |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 120 | style="@style/DropTargetButtonContainer" |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 121 | android:id="@+id/info_target" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 122 | android:layout_weight="1"> |
| 123 | <!-- Info target --> |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 124 | <TextView |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 125 | style="@style/DropTargetButton" |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 126 | android:id="@+id/info_target_text" |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 127 | android:text="@string/info_target_label" |
Winson Chung | 967289b | 2011-06-30 18:09:30 -0700 | [diff] [blame^] | 128 | android:drawableLeft="@drawable/info_target_selector" /> |
Winson Chung | 61fa419 | 2011-06-12 15:15:29 -0700 | [diff] [blame] | 129 | </com.android.launcher2.InfoDropTarget> |
Winson Chung | f0ea4d3 | 2011-06-06 14:27:16 -0700 | [diff] [blame] | 130 | </LinearLayout> |
| 131 | </com.android.launcher2.SearchDropTargetBar> |