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:id="@+id/search_activity_view" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 > 23 24 <view 25 class="com.android.quicksearchbox.ui.SuggestionsView" 26 android:id="@+id/suggestions" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:layout_alignParentLeft="true" 30 android:layout_alignParentRight="true" 31 android:layout_below="@+id/search_edit_frame" 32 android:layout_above="@+id/footer" 33 android:layout_alignWithParentIfMissing="true" 34 > 35 </view> 36 37 <include 38 android:id="@+id/footer" 39 layout="@layout/search_activity_footer" /> 40 41 <!-- The search plate is after the suggestions, to give it a higher 42 z-index. --> 43 <LinearLayout 44 android:id="@+id/search_edit_frame" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:layout_marginBottom="-10dip" 48 android:paddingRight="4dip" 49 android:orientation="horizontal" 50 android:gravity="center_vertical" 51 android:background="@drawable/search_plate_global" 52 android:layout_alignParentLeft="true" 53 android:layout_alignParentTop="true" 54 android:layout_alignParentRight="true" 55 > 56 57 <include layout="@layout/corpus_indicator" /> 58 59 <RelativeLayout 60 android:layout_width="0dip" 61 android:layout_height="wrap_content" 62 android:layout_weight="1.0" 63 android:layout_marginTop="6dip" 64 android:layout_marginBottom="6dip" > 65 66 <com.android.quicksearchbox.ui.QueryTextView 67 android:id="@+id/search_src_text" 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 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 <include layout="@layout/search_text_overlay"/> 87 88 </RelativeLayout> 89 90 <ImageButton 91 android:id="@+id/search_go_btn" 92 android:background="@drawable/btn_search_dialog" 93 android:src="@drawable/ic_btn_search" 94 android:layout_width="wrap_content" 95 android:layout_height="match_parent" 96 android:layout_marginTop="6dip" 97 android:layout_marginBottom="6dip" 98 android:visibility="gone" 99 /> 100 101 <ImageButton 102 android:id="@+id/search_voice_btn" 103 android:layout_width="wrap_content" 104 android:layout_height="match_parent" 105 android:background="@drawable/btn_search_dialog_voice" 106 android:src="@drawable/ic_btn_speak_now" 107 android:layout_marginRight="-4dip" 108 /> 109 </LinearLayout> 110 111 <!-- The header comes last so that is is on top of all the other views. It sits on top of the 112 suggestions list. --> 113 <include 114 android:id="@+id/header" 115 layout="@layout/search_activity_header" /> 116 117 </com.android.quicksearchbox.ui.SearchActivityView>