[fenix] For https://github.com/mozilla-mobile/fenix/issues/22692: Remove Metropolis...
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / search_suggestions_hint.xml
blobb369f3ee4b4601197fc52eb40ac56c7e477802cf
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/. -->
6 <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
7     xmlns:app="http://schemas.android.com/apk/res-auto"
8     xmlns:tools="http://schemas.android.com/tools"
9     android:id="@+id/scrollView"
10     android:layout_width="match_parent"
11     android:layout_height="match_parent"
12     android:scrollbars="vertical"
13     android:fadeScrollbars="false"
14     app:layout_constraintEnd_toEndOf="parent"
15     app:layout_constraintStart_toStartOf="parent"
16     app:layout_constraintTop_toBottomOf="@id/toolbar">
18     <androidx.constraintlayout.widget.ConstraintLayout
19         android:layout_width="match_parent"
20         android:layout_height="wrap_content"
21         android:background="?attr/layer1"
22         android:paddingStart="20dp"
23         android:paddingTop="20dp"
24         android:paddingEnd="20dp"
25         android:paddingBottom="10dp">
27         <ImageView
28             android:id="@+id/info_button"
29             android:layout_width="24dp"
30             android:layout_height="24dp"
31             android:importantForAccessibility="no"
32             app:layout_constraintStart_toStartOf="parent"
33             app:layout_constraintTop_toTopOf="parent"
34             app:srcCompat="@drawable/ic_info"
35             tools:tint="@color/fx_mobile_private_text_color_primary" />
37         <TextView
38             android:id="@+id/title"
39             android:layout_width="0dp"
40             android:layout_height="wrap_content"
41             android:layout_marginStart="32dp"
42             android:paddingBottom="12dp"
43             android:textAppearance="?android:attr/textAppearanceListItem"
44             app:layout_constraintEnd_toEndOf="parent"
45             app:layout_constraintStart_toStartOf="parent"
46             app:layout_constraintTop_toTopOf="parent"
47             tools:text="@string/search_suggestions_onboarding_title"
48             tools:textAppearance="?android:attr/textAppearanceListItem" />
50         <TextView
51             android:id="@+id/text"
52             android:layout_width="0dp"
53             android:layout_height="wrap_content"
54             android:textAppearance="?android:attr/textAppearanceSmall"
55             app:layout_constraintBottom_toTopOf="@id/learn_more"
56             app:layout_constraintEnd_toEndOf="@id/title"
57             app:layout_constraintStart_toStartOf="@id/title"
58             app:layout_constraintTop_toBottomOf="@id/title"
59             tools:text="@string/search_suggestions_onboarding_text"
60             tools:textAppearance="?attr/textAppearanceListItemSmall" />
62         <org.mozilla.fenix.utils.LinkTextView
63             android:id="@+id/learn_more"
64             android:layout_width="0dp"
65             android:layout_height="wrap_content"
66             android:minHeight="48dp"
67             android:text="@string/exceptions_empty_message_learn_more_link"
68             android:textAppearance="?android:attr/textAppearanceSmall"
69             android:textColor="?attr/accentHighContrast"
70             android:textStyle="bold"
71             app:layout_constraintBottom_toTopOf="@id/allow"
72             app:layout_constraintEnd_toStartOf="@id/dismiss"
73             app:layout_constraintStart_toStartOf="@id/title"
74             app:layout_constraintTop_toBottomOf="@id/text"
75             tools:textColor="@color/accent_high_contrast_private_theme" />
77         <com.google.android.material.button.MaterialButton
78             android:id="@+id/allow"
79             style="@style/NeutralButton"
80             android:layout_width="wrap_content"
81             android:layout_height="wrap_content"
82             android:layout_marginTop="20dp"
83             android:paddingHorizontal="12dp"
84             android:text="@string/search_suggestions_onboarding_allow_button"
85             app:layout_constraintEnd_toEndOf="@id/title"
86             app:layout_constraintTop_toBottomOf="@id/text" />
88         <TextView
89             android:id="@+id/dismiss"
90             android:layout_width="0dp"
91             android:layout_height="48dp"
92             android:gravity="center_vertical"
93             android:letterSpacing="0"
94             android:paddingHorizontal="20dp"
95             android:text="@string/search_suggestions_onboarding_do_not_allow_button"
96             android:textColor="#ffffff"
97             android:textStyle="bold"
98             app:layout_constraintBottom_toBottomOf="@id/allow"
99             app:layout_constraintEnd_toStartOf="@id/allow"
100             app:layout_constraintTop_toTopOf="@id/allow" />
102     </androidx.constraintlayout.widget.ConstraintLayout>
103 </androidx.core.widget.NestedScrollView>