1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- 4 Copyright 2023 The Android Open Source Project 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 --> 18 19<merge xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto"> 21 <LinearLayout 22 android:id="@+id/search_container" 23 android:layout_width="0dp" 24 android:layout_height="wrap_content" 25 android:layout_weight="1" 26 android:layout_marginRight="5dp" 27 android:background="@drawable/shape_textbox"> 28 29 <androidx.pdf.widget.SearchEditText 30 android:id="@+id/find_query_box" 31 android:layout_width="wrap_content" 32 android:layout_height="48dp" 33 android:layout_weight="1" 34 android:hint="@string/hint_find" 35 android:textColor="?attr/colorOnSurface" 36 android:textColorHint="?attr/colorOnSurfaceVariant" 37 android:paddingLeft="14dp" 38 android:imeOptions="actionSearch" 39 android:inputType="textFilter" 40 android:clickable="true" 41 android:focusable="true" 42 android:background="@null" 43 android:textAppearance="?attr/textAppearanceTitleMedium" 44 android:layout_gravity="center_vertical" /> 45 46 <TextView android:id="@+id/match_status_textview" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:layout_alignEnd="@+id/query_box" 50 android:paddingStart="8dp" 51 android:paddingEnd="10dp" 52 android:textColor="?attr/colorOnSurfaceVariant" 53 android:textAppearance="?attr/textAppearanceTitleSmall" 54 android:layout_gravity="center_vertical"> 55 </TextView> 56 </LinearLayout> 57 58 <ImageButton 59 android:id="@+id/find_prev_btn" 60 android:layout_width="@dimen/find_in_file_button_size" 61 android:layout_height="@dimen/find_in_file_button_size" 62 android:background="@drawable/shape_oval" 63 android:src="@drawable/keyboard_up" 64 app:tint="?attr/colorOnSurfaceVariant" 65 android:cropToPadding="true" 66 android:padding="3dp" 67 android:scaleType="centerInside" 68 android:contentDescription = "@string/previous_button_description"/> 69 70 <ImageButton 71 android:id="@+id/find_next_btn" 72 android:layout_width="@dimen/find_in_file_button_size" 73 android:layout_height="@dimen/find_in_file_button_size" 74 android:background="@drawable/shape_oval" 75 android:src="@drawable/keyboard_down" 76 app:tint="?attr/colorOnSurfaceVariant" 77 android:cropToPadding="true" 78 android:padding="3dp" 79 android:scaleType="centerInside" 80 android:contentDescription = "@string/next_button_description"/> 81 <ImageButton 82 android:id="@+id/close_btn" 83 android:layout_width="@dimen/find_in_file_button_size" 84 android:layout_height="@dimen/find_in_file_button_size" 85 android:background="@drawable/shape_oval" 86 android:src="@drawable/close_button" 87 app:tint="?attr/colorOnSurfaceVariant" 88 android:cropToPadding="true" 89 android:padding="5dp" 90 android:scaleType="centerInside" 91 android:layout_marginRight="10dp" 92 android:contentDescription = "@string/close_button_description"/> 93 94</merge>