| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2018 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:id="@+id/search_box_expanded" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/expanded_search_bar_height" |
| android:visibility="invisible"> |
| |
| <ImageButton |
| android:id="@+id/search_back_button" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:layout_marginStart="8dp" |
| android:layout_centerVertical="true" |
| android:background="?attr/selectableItemBackgroundBorderless" |
| android:contentDescription="@string/action_menu_back_from_search" |
| android:src="@drawable/quantum_ic_arrow_back_vd_theme_24" |
| android:tint="?android:attr/colorPrimary"/> |
| |
| <EditText |
| android:id="@+id/search_view" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_toEndOf="@+id/search_back_button" |
| android:layout_toStartOf="@+id/search_clear_button" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="8dp" |
| android:minHeight="48dp" |
| android:background="@null" |
| android:imeOptions="flagNoExtractUi" |
| android:inputType="textFilter" |
| android:maxLines="1" |
| android:hint="@string/dialer_hint_find_contact" |
| android:textColor="?android:attr/textColorSecondary" |
| android:textColorHint="?android:attr/textColorHint" |
| android:textCursorDrawable="@drawable/custom_cursor" |
| android:textSize="16sp"/> |
| |
| <ImageView |
| android:id="@+id/search_clear_button" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:layout_alignParentEnd="true" |
| android:layout_centerVertical="true" |
| android:scaleType="center" |
| android:background="?attr/selectableItemBackgroundBorderless" |
| android:contentDescription="@string/description_clear_search" |
| android:src="@drawable/quantum_ic_close_vd_theme_24" |
| android:tint="?colorIcon" |
| android:visibility="gone"/> |
| </RelativeLayout> |