diff options
Diffstat (limited to 'java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml')
-rw-r--r-- | java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml b/java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml new file mode 100644 index 000000000..c9ab6a92d --- /dev/null +++ b/java/com/android/dialer/contacts/resources/res/layout/search_bar_expanded.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 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="match_parent" + android:visibility="gone"> + + <ImageButton + android:id="@+id/search_back_button" + android:layout_width="@dimen/search_box_icon_size" + android:layout_height="@dimen/search_box_icon_size" + android:layout_marginStart="16dp" + android:layout_centerVertical="true" + android:background="?attr/selectableItemBackgroundBorderless" + android:contentDescription="@string/action_menu_back_from_search" + android:src="@drawable/back_arrow" + android:tint="?colorTextOnUnthemedDarkBackground"/> + + <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_close_button" + android:layout_centerVertical="true" + android:layout_marginStart="8dp" + android:background="@null" + android:fontFamily="@string/search_font_family" + android:imeOptions="flagNoExtractUi" + android:inputType="textFilter" + android:maxLines="1" + android:textColor="?android:attr/textColorPrimary" + android:textColorHint="?android:attr/textColorHint" + android:textCursorDrawable="@drawable/searchedittext_custom_cursor" + android:textSize="@dimen/search_text_size"/> + + <ImageView + android:id="@+id/search_close_button" + android:layout_width="@dimen/search_box_close_icon_size" + android:layout_height="@dimen/search_box_close_icon_size" + android:layout_alignParentEnd="true" + android:layout_centerVertical="true" + android:padding="@dimen/search_box_close_icon_padding" + android:background="?attr/selectableItemBackgroundBorderless" + android:clickable="true" + android:contentDescription="@string/description_clear_search" + android:src="@drawable/quantum_ic_close_vd_theme_24" + android:tint="?colorIcon"/> +</RelativeLayout> |