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 <RelativeLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" 19 style="@style/SearchDropTargetBar" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 <!-- Global search icon --> 23 <com.android.launcher2.HolographicImageView 24 style="@style/SearchButton" 25 android:id="@+id/search_button" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:layout_alignParentLeft="true" 29 android:layout_alignParentTop="true" 30 android:src="@drawable/ic_home_search_normal_holo" 31 android:onClick="onClickSearchButton" 32 android:focusable="true" 33 android:clickable="true" 34 android:contentDescription="@string/accessibility_search_button" /> 35 36 <ImageView 37 style="@style/SearchButtonDivider" 38 android:id="@+id/search_divider" 39 android:layout_toRightOf="@+id/search_button" 40 android:src="@drawable/divider_launcher_holo" 41 android:onClick="onClickSearchButton" 42 android:focusable="false" 43 android:clickable="true" /> 44 45 <!-- Voice search icon --> 46 <com.android.launcher2.HolographicImageView 47 style="@style/SearchButton.Voice" 48 android:id="@+id/voice_button" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_toRightOf="@+id/search_divider" 52 android:src="@drawable/ic_home_voice_search_holo" 53 android:onClick="onClickVoiceButton" 54 android:focusable="true" 55 android:clickable="true" 56 android:contentDescription="@string/accessibility_voice_search_button" /> 57 58 <!-- AppsCustomize icon --> 59 <com.android.launcher2.HolographicImageView 60 android:id="@+id/all_apps_button" 61 android:onClick="onClickAllAppsButton" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_alignParentRight="true" 65 android:layout_alignParentTop="true" 66 android:layout_toLeftOf="@+id/all_apps_divider" 67 android:paddingLeft="@dimen/toolbar_button_horizontal_padding" 68 android:paddingRight="@dimen/toolbar_button_horizontal_padding" 69 android:paddingTop="@dimen/all_apps_button_vertical_padding" 70 android:paddingBottom="@dimen/all_apps_button_vertical_padding" 71 android:src="@drawable/ic_home_all_apps_holo_dark" 72 73 android:focusable="true" 74 android:clickable="true" 75 android:contentDescription="@string/accessibility_all_apps_button" /> 76 </RelativeLayout>