1 <?xml version=
"1.0" encoding=
"utf-8"?>
4 * Copyright (C)
2010 The Android Open Source Project
6 * Licensed under the Apache License, Version
2.0 (the
"License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-
2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an
"AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 xmlns:
android=
"http://schemas.android.com/apk/res/android"
22 android:
id=
"@+id/abs__search_bar"
23 android:
layout_width=
"match_parent"
24 android:
layout_height=
"match_parent"
25 android:
orientation=
"horizontal"
28 <!-- This is actually used for the badge icon *or* the badge label (or neither) --
>
30 android:
id=
"@+id/abs__search_badge"
31 android:
layout_width=
"wrap_content"
32 android:
layout_height=
"match_parent"
33 android:
gravity=
"center_vertical"
34 android:
layout_marginBottom=
"2dip"
35 android:
drawablePadding=
"0dip"
36 android:
textAppearance=
"?android:attr/textAppearanceMedium"
37 android:
textColor=
"?attr/textColorPrimary"
38 android:
visibility=
"gone"
42 android:
id=
"@+id/abs__search_button"
43 style=
"?android:attr/actionButtonStyle"
44 android:
layout_width=
"wrap_content"
45 android:
layout_height=
"match_parent"
46 android:
layout_gravity=
"center_vertical"
47 android:
src=
"?attr/searchViewSearchIcon"
48 android:
contentDescription=
"@string/abs__searchview_description_search"
52 android:
id=
"@+id/abs__search_edit_frame"
53 android:
layout_width=
"wrap_content"
54 android:
layout_height=
"wrap_content"
55 android:
layout_weight=
"1"
56 android:
layout_gravity=
"center_vertical"
57 android:
layout_marginTop=
"4dip"
58 android:
layout_marginBottom=
"4dip"
59 android:
layout_marginLeft=
"8dip"
60 android:
layout_marginRight=
"8dip"
61 android:
orientation=
"horizontal">
64 android:
id=
"@+id/abs__search_mag_icon"
65 android:
layout_width=
"@dimen/abs__dropdownitem_icon_width"
66 android:
layout_height=
"wrap_content"
67 android:
scaleType=
"centerInside"
68 android:
layout_marginLeft=
"@dimen/abs__dropdownitem_text_padding_left"
69 android:
layout_gravity=
"center_vertical"
70 android:
src=
"?attr/searchViewSearchIcon"
71 android:
visibility=
"gone"
74 <!-- Inner layout contains the app icon, button(s) and EditText --
>
76 android:
id=
"@+id/abs__search_plate"
77 android:
layout_width=
"wrap_content"
78 android:
layout_height=
"wrap_content"
79 android:
layout_weight=
"1"
80 android:
layout_gravity=
"center_vertical"
81 android:
orientation=
"horizontal"
82 android:
background=
"?attr/searchViewTextField">
84 <view class=
"com.actionbarsherlock.widget.SearchView$SearchAutoComplete"
85 style=
"?attr/searchAutoCompleteTextView"
86 android:
id=
"@+id/abs__search_src_text"
87 android:
layout_height=
"36dip"
88 android:
layout_width=
"0dp"
89 android:
layout_weight=
"1"
90 android:
minWidth=
"@dimen/abs__search_view_text_min_width"
91 android:
layout_gravity=
"bottom"
92 android:
paddingLeft=
"@dimen/abs__dropdownitem_text_padding_left"
93 android:
paddingRight=
"@dimen/abs__dropdownitem_text_padding_right"
94 android:
singleLine=
"true"
95 android:
ellipsize=
"end"
96 android:
background=
"@null"
97 android:
inputType=
"text|textAutoComplete|textNoSuggestions"
98 android:
imeOptions=
"actionSearch"
99 android:
dropDownHeight=
"wrap_content"
100 android:
dropDownAnchor=
"@id/abs__search_edit_frame"
101 android:
dropDownVerticalOffset=
"0dip"
102 android:
dropDownHorizontalOffset=
"0dip"
103 android:
contentDescription=
"@string/abs__searchview_description_query"
107 android:
id=
"@+id/abs__search_close_btn"
108 android:
layout_width=
"wrap_content"
109 android:
layout_height=
"match_parent"
110 android:
paddingLeft=
"8dip"
111 android:
paddingRight=
"8dip"
112 android:
layout_gravity=
"center_vertical"
113 android:
background=
"?attr/selectableItemBackground"
114 android:
src=
"?attr/searchViewCloseIcon"
115 android:
focusable=
"true"
116 android:
contentDescription=
"@string/abs__searchview_description_clear"
122 android:
id=
"@+id/abs__submit_area"
123 android:
orientation=
"horizontal"
124 android:
layout_width=
"wrap_content"
125 android:
layout_height=
"match_parent"
126 android:
background=
"?attr/searchViewTextFieldRight">
129 android:
id=
"@+id/abs__search_go_btn"
130 android:
layout_width=
"wrap_content"
131 android:
layout_height=
"match_parent"
132 android:
layout_gravity=
"center_vertical"
133 android:
paddingLeft=
"16dip"
134 android:
paddingRight=
"16dip"
135 android:
background=
"?attr/selectableItemBackground"
136 android:
src=
"?attr/searchViewGoIcon"
137 android:
visibility=
"gone"
138 android:
focusable=
"true"
139 android:
contentDescription=
"@string/abs__searchview_description_submit"
143 android:
id=
"@+id/abs__search_voice_btn"
144 android:
layout_width=
"wrap_content"
145 android:
layout_height=
"match_parent"
146 android:
layout_gravity=
"center_vertical"
147 android:
paddingLeft=
"16dip"
148 android:
paddingRight=
"16dip"
149 android:
src=
"?attr/searchViewVoiceIcon"
150 android:
background=
"?attr/selectableItemBackground"
151 android:
visibility=
"gone"
152 android:
focusable=
"true"
153 android:
contentDescription=
"@string/abs__searchview_description_voice"