1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2009 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 17 <com.android.quicksearchbox.ui.SearchActivityView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 > 22 23 <view 24 class="com.android.quicksearchbox.ui.SuggestionsView" 25 android:id="@+id/suggestions" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:layout_alignParentLeft="true" 29 android:layout_alignParentRight="true" 30 android:layout_below="@+id/search_edit_frame" 31 android:layout_above="@+id/footer" 32 android:layout_alignWithParentIfMissing="true" 33 > 34 </view> 35 36 <LinearLayout 37 android:id="@+id/footer" 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:layout_alignParentLeft="true" 41 android:layout_alignParentBottom="true" 42 android:layout_alignParentRight="true" 43 > 44 </LinearLayout> 45 46 <!-- The search plate is after the suggestions, to give it a higher 47 z-index. --> 48 <LinearLayout 49 android:id="@+id/search_edit_frame" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:layout_marginBottom="-10dip" 53 android:paddingRight="4dip" 54 android:orientation="horizontal" 55 android:background="@drawable/search_plate_global" 56 android:layout_alignParentLeft="true" 57 android:layout_alignParentTop="true" 58 android:layout_alignParentRight="true" 59 > 60 61 <include layout="@layout/corpus_indicator" /> 62 63 <EditText 64 android:id="@+id/search_src_text" 65 android:layout_width="0dip" 66 android:layout_height="wrap_content" 67 android:layout_weight="1.0" 68 android:layout_marginTop="6dip" 69 android:layout_marginBottom="6dip" 70 android:paddingLeft="10dip" 71 android:paddingRight="10dip" 72 android:paddingTop="5dip" 73 android:paddingBottom="5dip" 74 android:gravity="center_vertical|left" 75 android:singleLine="true" 76 android:ellipsize="end" 77 android:inputType="text|textAutoComplete" 78 android:background="@drawable/textfield_search_empty_google" 79 android:textSize="18sp" 80 android:textStyle="normal" 81 android:textColor="@android:color/primary_text_light" 82 android:textColorHint="@color/search_hint" 83 android:imeOptions="actionGo" 84 /> 85 86 <ImageButton 87 android:id="@+id/search_go_btn" 88 android:background="@drawable/btn_search_dialog" 89 android:src="@drawable/ic_btn_search" 90 android:layout_width="wrap_content" 91 android:layout_height="match_parent" 92 android:layout_marginTop="6dip" 93 android:layout_marginBottom="6dip" 94 android:visibility="gone" 95 /> 96 97 <ImageButton 98 android:id="@+id/search_voice_btn" 99 android:layout_width="wrap_content" 100 android:layout_height="match_parent" 101 android:background="@drawable/btn_search_dialog_voice" 102 android:src="@drawable/ic_btn_speak_now" 103 android:layout_marginRight="-4dip" 104 /> 105 </LinearLayout> 106 107 </com.android.quicksearchbox.ui.SearchActivityView>