<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:id="@+id/search_plate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:paddingRight="14dip"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="@drawable/search_floater" >
<ImageView
android:id="@+id/search_icon"
android:layout_width="48dip"
android:layout_height="48dip"
android:scaleType="centerInside"
android:focusable="false"
android:clickable="true"
android:padding="5dip"
android:src="@mipmap/search_app_icon"
/>
<TextView
android:id="@+id/search_widget_text"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginTop="6dip"
android:layout_marginBottom="6dip"
android:paddingLeft="10dip"
android:paddingRight="10dip"
android:paddingTop="5dip"
android:paddingBottom="5dip"
android:gravity="center_vertical|left"
android:singleLine="true"
android:ellipsize="end"
android:editable="false"
android:focusable="true"
android:inputType="none"
android:background="@drawable/textfield_search_empty_google"
android:textSize="18sp"
android:textStyle="normal"
android:textColor="@android:color/primary_text_light"
android:textColorHint="@color/search_hint"
/>
<include
android:id="@+id/voice_search_hint_container"
layout="@layout/voice_search_hint"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:layout_marginLeft="6dip"
android:layout_marginTop="6dip"
android:layout_marginBottom="6dip"
android:layout_marginRight="-4dip"
/>
<ImageButton
android:id="@+id/search_widget_voice_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/btn_search_dialog_voice"
android:src="@drawable/ic_btn_speak_now"
android:layout_marginRight="-4dip"
/>
</LinearLayout>
</RelativeLayout>