Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2014 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <LinearLayout |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/search_box_expanded" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:orientation="horizontal" |
| 22 | android:gravity="center_vertical" |
Andrew Lee | d8145a5 | 2015-10-28 21:03:00 +0000 | [diff] [blame] | 23 | android:visibility="gone" > |
Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 24 | |
| 25 | <ImageButton |
| 26 | android:id="@+id/search_back_button" |
| 27 | android:layout_width="@dimen/search_box_icon_size" |
| 28 | android:layout_height="@dimen/search_box_icon_size" |
Nancy Chen | 80f8bee | 2014-08-15 12:19:29 -0700 | [diff] [blame] | 29 | android:layout_margin="@dimen/search_box_navigation_icon_margin" |
Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 30 | android:src="@drawable/ic_back_arrow" |
Wenyi Wang | 4ad6cc6 | 2016-02-21 10:48:40 -0800 | [diff] [blame] | 31 | android:background="?android:attr/selectableItemBackgroundBorderless" |
Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 32 | android:contentDescription="@string/action_menu_back_from_search" |
Bryan Owens | 8fb0363 | 2015-12-11 22:04:15 -0600 | [diff] [blame^] | 33 | android:tint="@color/back_arrow_icon_tint_color" /> |
Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 34 | |
| 35 | <EditText |
| 36 | android:id="@+id/search_view" |
| 37 | android:layout_width="0dp" |
| 38 | android:layout_height="@dimen/search_box_icon_size" |
| 39 | android:layout_weight="1" |
| 40 | android:layout_marginLeft="@dimen/search_box_text_left_margin" |
| 41 | android:textSize="@dimen/search_text_size" |
| 42 | android:fontFamily="@string/search_font_family" |
| 43 | android:textColor="@color/searchbox_text_color" |
| 44 | android:textColorHint="@color/searchbox_hint_text_color" |
Nancy Chen | 03f4070 | 2014-08-06 11:14:49 -0700 | [diff] [blame] | 45 | android:textCursorDrawable="@drawable/searchedittext_custom_cursor" |
Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 46 | android:background="@null" |
| 47 | android:inputType="textFilter" |
| 48 | android:singleLine="true" |
| 49 | android:imeOptions="flagNoExtractUi" /> |
| 50 | |
| 51 | <ImageView |
| 52 | android:id="@+id/search_close_button" |
Nancy Chen | 80f8bee | 2014-08-15 12:19:29 -0700 | [diff] [blame] | 53 | android:layout_height="@dimen/search_box_close_icon_size" |
| 54 | android:layout_width="@dimen/search_box_close_icon_size" |
Brian Attwell | f326c6c | 2015-01-20 11:28:24 -0800 | [diff] [blame] | 55 | android:padding="@dimen/search_box_close_icon_padding" |
Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 56 | android:src="@drawable/ic_close_dk" |
| 57 | android:clickable="true" |
Wenyi Wang | 4ad6cc6 | 2016-02-21 10:48:40 -0800 | [diff] [blame] | 58 | android:background="?android:attr/selectableItemBackgroundBorderless" |
Andrew Lee | c660775 | 2014-06-06 13:09:37 -0700 | [diff] [blame] | 59 | android:contentDescription="@string/description_clear_search" |
| 60 | android:tint="@color/searchbox_icon_tint"/> |
Brian Attwell | 1397965 | 2014-05-30 16:46:36 -0700 | [diff] [blame] | 61 | |
Andrew Lee | c660775 | 2014-06-06 13:09:37 -0700 | [diff] [blame] | 62 | </LinearLayout> |