1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 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<!-- This activity exercises search invocation options --> 18 19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical"> 23 24 <!-- Section: Information --> 25 <TextView 26 android:layout_width="match_parent" 27 android:layout_height="wrap_content" 28 android:paddingBottom="4dip" 29 android:text="@string/msg_search" /> 30 31 <!-- Section: Invocation --> 32 <TextView 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:text="@string/search_sect_invocation" /> 36 37 <Button android:id="@+id/btn_start_search" 38 android:text="@string/label_onsearchrequested" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content"/> 41 42 <Spinner android:id="@+id/spinner_menu_mode" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:drawSelectorOnTop="true" /> 46 47 <!-- Section: Options --> 48 <TextView 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:text="@string/search_sect_options" /> 52 <LinearLayout 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:orientation="horizontal"> 56 57 <LinearLayout 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:gravity="center_horizontal" 61 android:orientation="horizontal"> 62 <TextView 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:text="@string/label_search_query_prefill" /> 66 <EditText android:id="@+id/txt_query_prefill" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:maxEms="10" 70 android:minEms="10" /> 71 </LinearLayout> 72 </LinearLayout> 73 74 <LinearLayout 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:orientation="horizontal"> 78 <LinearLayout 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:gravity="center_horizontal" 82 android:orientation="horizontal"> 83 <TextView 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:text="@string/label_search_query_appdata" /> 87 <EditText android:id="@+id/txt_query_appdata" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:maxEms="10" 91 android:minEms="10" /> 92 </LinearLayout> 93 </LinearLayout> 94 95 96 </LinearLayout> 97