<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@id/search_bar"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal">

    <TextView
        android:id="@id/search_badge"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_marginBottom="2.0dip"
        android:drawablePadding="0.0dip"
        android:gravity="center_vertical"
        android:textAppearance="?android:textAppearanceMedium"
        android:textColor="?android:textColorPrimary"
        android:visibility="gone" />

    <ImageView
        android:id="@id/search_button"
        style="?attr/actionButtonStyle"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_gravity="center_vertical"
        android:contentDescription="@string/abc_searchview_description_search"
        android:focusable="true"
        android:src="?searchViewSearchIcon" />

    <LinearLayout
        android:id="@id/search_edit_frame"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginLeft="8.0dip"
        android:layout_marginTop="4.0dip"
        android:layout_marginRight="8.0dip"
        android:layout_marginBottom="4.0dip"
        android:layout_weight="1.0"
        android:orientation="horizontal">

        <ImageView
            android:id="@id/search_mag_icon"
            android:layout_width="@dimen/abc_dropdownitem_icon_width"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="@dimen/abc_dropdownitem_text_padding_left"
            android:scaleType="centerInside"
            android:src="?searchViewSearchIcon"
            android:visibility="gone" />

        <LinearLayout
            android:id="@id/search_plate"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_weight="1.0"
            android:background="?searchViewTextField"
            android:orientation="horizontal">

            <view
                android:id="@id/search_src_text"
                style="?attr/searchViewAutoCompleteTextView"
                class="android.support.v7.widget.SearchView$SearchAutoComplete"
                android:layout_width="0.0dip"
                android:layout_height="36.0dip"
                android:layout_gravity="bottom"
                android:layout_weight="1.0"
                android:background="@null"
                android:contentDescription="@string/abc_searchview_description_query"
                android:dropDownAnchor="@id/search_edit_frame"
                android:dropDownHeight="wrap_content"
                android:dropDownHorizontalOffset="0.0dip"
                android:dropDownVerticalOffset="0.0dip"
                android:ellipsize="end"
                android:imeOptions="actionSearch"
                android:inputType="textAutoComplete|textNoSuggestions"
                android:minWidth="@dimen/abc_search_view_text_min_width"
                android:paddingLeft="@dimen/abc_dropdownitem_text_padding_left"
                android:paddingRight="@dimen/abc_dropdownitem_text_padding_right"
                android:singleLine="true" />

            <ImageView
                android:id="@id/search_close_btn"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_gravity="center_vertical"
                android:background="?selectableItemBackground"
                android:contentDescription="@string/abc_searchview_description_clear"
                android:focusable="true"
                android:paddingLeft="8.0dip"
                android:paddingRight="8.0dip"
                android:src="?searchViewCloseIcon" />
        </LinearLayout>

        <LinearLayout
            android:id="@id/submit_area"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:background="?searchViewTextFieldRight"
            android:orientation="horizontal">

            <ImageView
                android:id="@id/search_go_btn"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_gravity="center_vertical"
                android:background="?selectableItemBackground"
                android:contentDescription="@string/abc_searchview_description_submit"
                android:focusable="true"
                android:paddingLeft="16.0dip"
                android:paddingRight="16.0dip"
                android:src="?searchViewGoIcon"
                android:visibility="gone" />

            <ImageView
                android:id="@id/search_voice_btn"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_gravity="center_vertical"
                android:background="?selectableItemBackground"
                android:contentDescription="@string/abc_searchview_description_voice"
                android:focusable="true"
                android:paddingLeft="16.0dip"
                android:paddingRight="16.0dip"
                android:src="?searchViewVoiceIcon"
                android:visibility="gone" />
        </LinearLayout>
    </LinearLayout>
</LinearLayout>