Blob Blame History Raw
<?xml version="1.0" encoding="utf-8"?><!--
/*
   Super bar/Quick connect bar layout

   Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz

   This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. 
   If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
 --><!-- Inner layout contains the button and EditText -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/search_plate"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:descendantFocusability="afterDescendants"
    android:focusable="true"
    android:gravity="center_vertical"
    android:paddingBottom="16dip"
    android:paddingLeft="12dip"
    android:paddingRight="6dip"
    android:paddingTop="7dip">

    <EditText
        android:id="@+id/superBarEditText"
        android:layout_width="0dip"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:drawableLeft="@drawable/icon_edittext_search"
        android:drawablePadding="2dip"
        android:drawableRight="@drawable/icon_edittext_clear"
        android:ellipsize="end"
        android:hint="@string/search_hint"
        android:inputType="text"
        android:paddingLeft="8dip"
        android:paddingRight="6dip"
        android:singleLine="true" />

    <Button
        android:id="@+id/clear_search_btn"
        android:layout_width="40dip"
        android:layout_height="40dip"
        android:layout_alignParentRight="true"
        android:layout_gravity="right|center_vertical"
        android:layout_marginRight="10dip"
        android:background="@android:color/transparent" />

</RelativeLayout>