2019-12-02 18:05:55 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
2019-11-15 16:01:34 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-12-02 18:05:55 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-11-15 16:01:34 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-12-05 17:37:20 +00:00
|
|
|
android:paddingTop="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
android:paddingStart="20dp"
|
2019-12-02 18:05:55 +00:00
|
|
|
android:paddingBottom="10dp">
|
2019-11-15 16:01:34 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/info_button"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2020-06-15 04:22:04 +00:00
|
|
|
android:importantForAccessibility="no"
|
2019-12-06 03:54:32 +00:00
|
|
|
app:srcCompat="@drawable/ic_info"
|
2019-11-15 16:01:34 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-12-05 17:37:20 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:tint="@color/contrast_text_private_theme"/>
|
2019-11-15 16:01:34 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="32dp"
|
|
|
|
android:paddingBottom="12dp"
|
2019-12-02 18:05:55 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
2019-11-15 16:01:34 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-12-02 18:05:55 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-12-05 17:37:20 +00:00
|
|
|
tools:text="@string/search_suggestions_onboarding_title"
|
|
|
|
tools:textAppearance="?android:attr/textAppearanceListItem"/>
|
2019-11-15 16:01:34 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-12-02 18:05:55 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/learn_more"
|
2019-11-15 16:01:34 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/title"
|
2019-12-02 18:05:55 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@id/title"
|
2019-12-05 17:37:20 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/title"
|
|
|
|
tools:text="@string/search_suggestions_onboarding_text"
|
|
|
|
tools:textAppearance="?attr/textAppearanceListItemSmall"/>
|
2019-11-15 16:01:34 +00:00
|
|
|
|
2020-06-26 10:10:17 +00:00
|
|
|
<org.mozilla.fenix.utils.LinkTextView
|
2019-11-15 16:01:34 +00:00
|
|
|
android:id="@+id/learn_more"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/exceptions_empty_message_learn_more_link"
|
2019-12-02 18:05:55 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="?attr/accentHighContrast"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/allow"
|
2019-11-15 16:01:34 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/title"
|
2019-12-02 18:05:55 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@id/title"
|
2019-12-05 17:37:20 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/text"
|
|
|
|
tools:textColor="@color/accent_high_contrast_private_theme"/>
|
2019-11-15 16:01:34 +00:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/allow"
|
2020-04-15 22:49:02 +00:00
|
|
|
style="@style/NeutralButton"
|
2019-11-15 16:01:34 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:text="@string/search_suggestions_onboarding_allow_button"
|
2019-12-02 18:05:55 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-11-15 16:01:34 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/title"
|
2019-12-05 17:37:20 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/learn_more" />
|
2019-11-15 16:01:34 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/dismiss"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="20dp"
|
|
|
|
android:text="@string/search_suggestions_onboarding_do_not_allow_button"
|
2019-12-02 18:05:55 +00:00
|
|
|
android:textColor="#ffffff"
|
|
|
|
android:textStyle="bold"
|
2019-11-15 16:01:34 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/allow"
|
2019-12-02 18:05:55 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/allow"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/allow" />
|
2019-11-15 16:01:34 +00:00
|
|
|
|
2019-12-06 03:54:32 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|