| <?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. |
| --> |
| |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="?android:attr/colorPrimary" |
| android:gravity="center_horizontal" |
| android:orientation="vertical"> |
| |
| <RelativeLayout |
| android:id="@+id/app_search_header" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/app_bar_height"> |
| |
| <FrameLayout |
| android:id="@+id/exit_button_container" |
| android:layout_width="@dimen/panel_margin" |
| android:layout_height="@dimen/app_grid_touch_target_size" |
| android:background="?android:attr/selectableItemBackground" |
| android:clickable="true" |
| android:focusable="true"> |
| <ImageButton |
| android:layout_width="@dimen/icon_size" |
| android:layout_height="@dimen/icon_size" |
| android:layout_gravity="center" |
| android:adjustViewBounds="true" |
| android:background="@null" |
| android:clickable="false" |
| android:focusable="false" |
| android:gravity="center" |
| android:src="@drawable/ic_arrow_back_black" |
| android:tint="@color/icon_tint"/> |
| </FrameLayout> |
| |
| <EditText |
| android:id="@+id/app_search_bar" |
| android:layout_width="@dimen/search_item_width" |
| android:layout_height="@dimen/search_box_height" |
| android:layout_centerInParent="true" |
| android:layout_gravity="center_vertical" |
| android:background="?android:attr/colorPrimary" |
| android:drawablePadding="@dimen/search_bar_drawable_text_padding" |
| android:drawableStart="@drawable/ic_search_black" |
| android:drawableTint="@color/icon_tint" |
| android:inputType="text|textNoSuggestions" |
| android:maxLines="1" |
| android:paddingEnd="@dimen/search_bar_margin" |
| android:paddingStart="@dimen/search_bar_margin" |
| android:textAppearance="?android:attr/textAppearanceLarge"/> |
| </RelativeLayout> |
| |
| <androidx.recyclerview.widget.RecyclerView |
| android:id="@+id/search_result" |
| android:layout_width="@dimen/search_item_width" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/search_result_margin"/> |
| |
| </LinearLayout> |
| |