blob: fe5647e44c1fa6d96163474b4311c648f188a00f [file] [log] [blame]
The Android Open Source Projectba6d7b82008-10-21 07:00:00 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* apps/common/res/layout/SearchBar.xml
4**
5** Copyright 2007, The Android Open Source Project
6**
7** Licensed under the Apache License, Version 2.0 (the "License");
8** you may not use this file except in compliance with the License.
9** You may obtain a copy of the License at
10**
11** http://www.apache.org/licenses/LICENSE-2.0
12**
13** Unless required by applicable law or agreed to in writing, software
14** distributed under the License is distributed on an "AS IS" BASIS,
15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16** See the License for the specific language governing permissions and
17** limitations under the License.
18*/
19-->
20 <!-- Outer layout defines the entire search bar at the top of the screen -->
21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 android:id="@+id/search_bar"
23 android:layout_width="fill_parent"
24 android:layout_height="wrap_content"
25 android:orientation="vertical"
26 android:paddingLeft="15dip"
27 android:paddingRight="15dip"
28 android:paddingTop="10dip"
29 android:paddingBottom="20dip"
30 android:baselineAligned="false"
31 android:background="@android:drawable/alert_dark_frame" >
32
33 <!-- TextView or ImageView at top shows searched application -->
34 <!-- Code will display one-or-the-other (or neither) -->
35 <FrameLayout
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
38 android:layout_marginBottom="3dip">
39
40 <TextView
41 android:id="@+id/search_badge_label"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:textAppearance="?android:attr/textAppearanceSmall" />
45 </FrameLayout>
46
47 <!-- Inner layout contains the button(s) and EditText -->
48 <LinearLayout
49 android:id="@+id/search_edit_frame"
50 android:layout_width="fill_parent"
51 android:layout_height="wrap_content"
52 android:orientation="horizontal"
53 android:gravity="center_vertical"
54 android:baselineAligned="false" >
55
56 <EditText
57 android:id="@+id/search_src_text"
58 android:layout_height="wrap_content"
59 android:layout_width="0dip"
60 android:layout_weight="1.0"
61 android:paddingLeft="6dip"
62 android:paddingRight="6dip"
63 android:singleLine="true"
64 android:textSize="14sp" />
65
66 <Button
67 android:id="@+id/search_go_btn"
68 android:text="@android:string/search_go"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content" />
71 </LinearLayout>
72
73 </LinearLayout>