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="@dimen/search_bar_height" 22 android:layout_gravity="bottom|center_horizontal" 23 android:background="@drawable/search_frame"> 24 <!-- Global search icon --> 25 <com.android.launcher2.HolographicLinearLayout 26 style="@style/SearchButton" 27 android:id="@+id/search_button_container" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:layout_alignParentLeft="true" 31 android:layout_alignParentTop="true" 32 android:layout_toLeftOf="@+id/voice_button_container" 33 android:onClick="onClickSearchButton" 34 android:focusable="true" 35 android:clickable="true" 36 android:contentDescription="@string/accessibility_search_button"> 37 <ImageView 38 android:id="@+id/search_button" 39 android:layout_width="wrap_content" 40 android:layout_height="match_parent" 41 android:src="@drawable/ic_home_search_normal_holo" 42 android:adjustViewBounds="true" /> 43 </com.android.launcher2.HolographicLinearLayout> 44 45 <!-- Voice search icon --> 46 <com.android.launcher2.HolographicLinearLayout 47 style="@style/SearchButton.Voice" 48 android:id="@+id/voice_button_container" 49 android:layout_width="@dimen/search_bar_height" 50 android:layout_height="match_parent" 51 android:layout_alignParentRight="true" 52 android:layout_alignParentTop="true" 53 android:gravity="right" 54 android:onClick="onClickVoiceButton" 55 android:focusable="true" 56 android:clickable="true" 57 android:contentDescription="@string/accessibility_voice_search_button"> 58 <ImageView 59 android:id="@+id/voice_button" 60 android:layout_width="wrap_content" 61 android:layout_height="match_parent" 62 android:src="@drawable/ic_home_voice_search_holo" 63 android:adjustViewBounds="true" /> 64 </com.android.launcher2.HolographicLinearLayout> 65 </RelativeLayout> 66