1 <?xml version=
"1.0" encoding=
"utf-8"?> 
   4  * Copyright (C) 
2013 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/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/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=
"?android:attr/textColorPrimary" 
  38             android:
visibility=
"gone" 
  42             android:
id=
"@+id/search_button" 
  43             style=
"?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:
focusable=
"true" 
  49             android:
contentDescription=
"@string/abc_searchview_description_search" 
  53             android:
id=
"@+id/search_edit_frame" 
  54             android:
layout_width=
"wrap_content" 
  55             android:
layout_height=
"wrap_content" 
  56             android:
layout_weight=
"1" 
  57             android:
layout_gravity=
"center_vertical" 
  58             android:
layout_marginTop=
"4dip" 
  59             android:
layout_marginBottom=
"4dip" 
  60             android:
layout_marginLeft=
"8dip" 
  61             android:
layout_marginRight=
"8dip" 
  62             android:
orientation=
"horizontal"> 
  65                 android:
id=
"@+id/search_mag_icon" 
  66                 android:
layout_width=
"@dimen/abc_dropdownitem_icon_width" 
  67                 android:
layout_height=
"wrap_content" 
  68                 android:
scaleType=
"centerInside" 
  69                 android:
layout_marginLeft=
"@dimen/abc_dropdownitem_text_padding_left" 
  70                 android:
layout_gravity=
"center_vertical" 
  71                 android:
src=
"?attr/searchViewSearchIcon" 
  72                 android:
visibility=
"gone" 
  75         <!-- Inner layout contains the app icon, button(s) and EditText --
> 
  77                 android:
id=
"@+id/search_plate" 
  78                 android:
layout_width=
"wrap_content" 
  79                 android:
layout_height=
"wrap_content" 
  80                 android:
layout_weight=
"1" 
  81                 android:
layout_gravity=
"center_vertical" 
  82                 android:
orientation=
"horizontal" 
  83                 android:
background=
"?attr/searchViewTextField"> 
  85             <view class=
"android.support.v7.widget.SearchView$SearchAutoComplete" 
  86                   style=
"?attr/searchViewAutoCompleteTextView" 
  87                   android:
id=
"@+id/search_src_text" 
  88                   android:
layout_height=
"36dip" 
  89                   android:
layout_width=
"0dp" 
  90                   android:
layout_weight=
"1" 
  91                   android:
minWidth=
"@dimen/abc_search_view_text_min_width" 
  92                   android:
layout_gravity=
"bottom" 
  93                   android:
paddingLeft=
"@dimen/abc_dropdownitem_text_padding_left" 
  94                   android:
paddingRight=
"@dimen/abc_dropdownitem_text_padding_right" 
  95                   android:
singleLine=
"true" 
  96                   android:
ellipsize=
"end" 
  97                   android:
background=
"@null" 
  98                   android:
inputType=
"text|textAutoComplete|textNoSuggestions" 
  99                   android:
imeOptions=
"actionSearch" 
 100                   android:
dropDownHeight=
"wrap_content" 
 101                   android:
dropDownAnchor=
"@id/search_edit_frame" 
 102                   android:
dropDownVerticalOffset=
"0dip" 
 103                   android:
dropDownHorizontalOffset=
"0dip" 
 104                   android:
contentDescription=
"@string/abc_searchview_description_query" 
 108                     android:
id=
"@+id/search_close_btn" 
 109                     android:
layout_width=
"wrap_content" 
 110                     android:
layout_height=
"match_parent" 
 111                     android:
paddingLeft=
"8dip" 
 112                     android:
paddingRight=
"8dip" 
 113                     android:
layout_gravity=
"center_vertical" 
 114                     android:
background=
"?attr/selectableItemBackground" 
 115                     android:
src=
"?attr/searchViewCloseIcon" 
 116                     android:
focusable=
"true" 
 117                     android:
contentDescription=
"@string/abc_searchview_description_clear" 
 123                 android:
id=
"@+id/submit_area" 
 124                 android:
orientation=
"horizontal" 
 125                 android:
layout_width=
"wrap_content" 
 126                 android:
layout_height=
"match_parent" 
 127                 android:
background=
"?attr/searchViewTextFieldRight"> 
 130                     android:
id=
"@+id/search_go_btn" 
 131                     android:
layout_width=
"wrap_content" 
 132                     android:
layout_height=
"match_parent" 
 133                     android:
layout_gravity=
"center_vertical" 
 134                     android:
paddingLeft=
"16dip" 
 135                     android:
paddingRight=
"16dip" 
 136                     android:
background=
"?attr/selectableItemBackground" 
 137                     android:
src=
"?attr/searchViewGoIcon" 
 138                     android:
visibility=
"gone" 
 139                     android:
focusable=
"true" 
 140                     android:
contentDescription=
"@string/abc_searchview_description_submit" 
 144                     android:
id=
"@+id/search_voice_btn" 
 145                     android:
layout_width=
"wrap_content" 
 146                     android:
layout_height=
"match_parent" 
 147                     android:
layout_gravity=
"center_vertical" 
 148                     android:
paddingLeft=
"16dip" 
 149                     android:
paddingRight=
"16dip" 
 150                     android:
src=
"?attr/searchViewVoiceIcon" 
 151                     android:
background=
"?attr/selectableItemBackground" 
 152                     android:
visibility=
"gone" 
 153                     android:
focusable=
"true" 
 154                     android:
contentDescription=
"@string/abc_searchview_description_voice" 
 159 </LinearLayout><!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/klp-ub-dev/frameworks/support/v7/appcompat/res/layout/abc_search_view.xml --
>