Bug 1849073 - Part 1: Remove the Bookmark Search Dialog
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / fragment_history_search_dialog.xml
blob21fa8e090914699a899e405469c8bd0d20ee3133
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3    - License, v. 2.0. If a copy of the MPL was not distributed with this
4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <androidx.constraintlayout.widget.ConstraintLayout
6     xmlns:android="http://schemas.android.com/apk/res/android"
7     xmlns:tools="http://schemas.android.com/tools"
8     xmlns:app="http://schemas.android.com/apk/res-auto"
9     android:id="@+id/search_wrapper"
10     android:layout_width="match_parent"
11     android:layout_height="match_parent"
12     android:fitsSystemWindows="true"
13     android:background="?attr/scrimBackground">
15     <mozilla.components.browser.toolbar.BrowserToolbar
16         android:id="@+id/toolbar"
17         android:layout_width="0dp"
18         android:layout_height="@dimen/browser_toolbar_height"
19         android:background="@drawable/toolbar_background_top"
20         android:clickable="true"
21         android:focusable="true"
22         android:focusableInTouchMode="true"
23         app:layout_scrollFlags="scroll|enterAlways|snap|exitUntilCollapsed"
24         app:browserToolbarClearColor="?attr/textPrimary"
25         app:browserToolbarInsecureColor="?attr/textPrimary"
26         app:browserToolbarMenuColor="?attr/textPrimary"
27         app:browserToolbarProgressBarGravity="bottom"
28         app:browserToolbarSecureColor="?attr/textPrimary"
29         app:browserToolbarTrackingProtectionAndSecurityIndicatorSeparatorColor="?borderPrimary"
30         app:layout_constraintEnd_toEndOf="parent"
31         app:layout_constraintStart_toStartOf="parent"
32         app:layout_constraintTop_toTopOf="parent"/>
34     <ViewStub
35         android:id="@+id/search_suggestions_hint"
36         android:layout_width="0dp"
37         android:layout_height="wrap_content"
38         android:inflatedId="@id/search_suggestions_hint"
39         android:layout="@layout/search_suggestions_hint"
40         app:layout_constrainedHeight="true"
41         app:layout_constraintBottom_toTopOf="@id/search_hint_bottom_barrier"
42         app:layout_constraintEnd_toEndOf="parent"
43         app:layout_constraintStart_toStartOf="parent"
44         app:layout_constraintTop_toBottomOf="@id/toolbar" />
46     <View
47         android:id="@+id/search_suggestions_hint_divider"
48         android:layout_width="match_parent"
49         android:layout_height="1dp"
50         android:background="?borderPrimary"
51         android:visibility="gone"
52         app:layout_constraintBottom_toBottomOf="@id/search_suggestions_hint"
53         app:layout_constraintEnd_toEndOf="parent"
54         app:layout_constraintStart_toStartOf="parent" />
56     <androidx.constraintlayout.widget.Barrier
57         android:id="@+id/search_hint_bottom_barrier"
58         android:layout_width="wrap_content"
59         android:layout_height="wrap_content"
60         app:barrierDirection="top"
61         app:constraint_referenced_ids="awesome_bar,pill_wrapper"/>
63     <org.mozilla.fenix.library.history.awesomebar.AwesomeBarWrapper
64         android:id="@+id/awesome_bar"
65         android:layout_width="0dp"
66         android:layout_height="0dp"
67         android:fadingEdge="horizontal"
68         android:fadingEdgeLength="40dp"
69         android:nestedScrollingEnabled="false"
70         android:requiresFadingEdge="vertical"
71         android:background="?attr/layer1"
72         android:visibility="invisible"
73         app:layout_constraintBottom_toTopOf="@+id/pill_wrapper"
74         app:layout_constraintEnd_toEndOf="parent"
75         app:layout_constraintStart_toStartOf="parent"
76         app:layout_constraintTop_toBottomOf="@id/search_suggestions_hint" />
78     <ImageView
79         android:id="@+id/link_icon"
80         android:layout_width="wrap_content"
81         android:layout_height="wrap_content"
82         android:layout_marginStart="@dimen/search_fragment_clipboard_item_horizontal_margin"
83         android:clickable="false"
84         android:focusable="false"
85         android:importantForAccessibility="no"
86         android:visibility="gone"
87         app:srcCompat="@drawable/ic_link"
88         tools:visibility="visible" />
90     <View
91         android:id="@+id/pill_wrapper_divider"
92         android:layout_width="match_parent"
93         android:layout_height="1dp"
94         android:background="?borderPrimary"
95         app:layout_constraintBottom_toTopOf="@id/pill_wrapper" />
97     <View
98         android:id="@+id/pill_wrapper"
99         android:layout_width="0dp"
100         android:layout_height="0dp"
101         android:background="?attr/layer1"
102         android:importantForAccessibility="no"
103         android:paddingStart="@dimen/search_fragment_pill_padding_start"
104         android:paddingTop="@dimen/search_fragment_pill_padding_vertical"
105         android:paddingEnd="@dimen/search_fragment_pill_padding_end"
106         android:paddingBottom="@dimen/search_fragment_pill_padding_vertical"
107         app:layout_constraintBottom_toBottomOf="parent"
108         app:layout_constraintEnd_toEndOf="parent"
109         app:layout_constraintStart_toStartOf="parent" />
111 </androidx.constraintlayout.widget.ConstraintLayout>