2020-02-04 05:03:15 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
|
2019-05-16 05:33:09 +00:00
|
|
|
- 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/. -->
|
2020-02-04 05:03:15 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/onboarding_card"
|
2020-04-28 10:54:49 +00:00
|
|
|
style="@style/OnboardingCardLightWithPadding"
|
2020-02-04 05:03:15 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false">
|
2020-02-04 05:03:15 +00:00
|
|
|
|
2019-05-16 05:33:09 +00:00
|
|
|
<TextView
|
2020-02-04 05:03:15 +00:00
|
|
|
android:id="@+id/header_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:drawablePadding="12dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:lines="1"
|
2020-06-05 07:02:21 +00:00
|
|
|
android:text="@string/onboarding_tracking_protection_header_2"
|
2020-02-04 05:03:15 +00:00
|
|
|
android:textAppearance="@style/HeaderTextStyle"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tracking_protection_toggle"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:drawableStart="@drawable/ic_onboarding_tracking_protection" />
|
|
|
|
|
2020-05-29 16:22:08 +00:00
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
2020-02-04 05:03:15 +00:00
|
|
|
android:id="@+id/tracking_protection_toggle"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-29 16:22:08 +00:00
|
|
|
android:minWidth="48dp"
|
|
|
|
android:minHeight="48dp"
|
2020-02-04 05:03:15 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/header_text"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/header_text" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/description_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:textAppearance="@style/Body14TextStyle"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/header_text"
|
2020-06-05 07:02:21 +00:00
|
|
|
tools:text="@string/onboarding_tracking_protection_description_2" />
|
2020-02-04 05:03:15 +00:00
|
|
|
|
2020-02-07 10:11:23 +00:00
|
|
|
|
2020-02-04 05:03:15 +00:00
|
|
|
<org.mozilla.fenix.onboarding.OnboardingRadioButton
|
|
|
|
android:id="@+id/tracking_protection_standard_option"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-02-04 05:03:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:background="@android:color/transparent"
|
2020-05-28 23:28:21 +00:00
|
|
|
android:checked="true"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:foreground="@drawable/rounded_ripple"
|
|
|
|
android:gravity="top"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="8dp"
|
2020-05-08 06:15:46 +00:00
|
|
|
android:theme="@style/Checkable.Colored"
|
2020-02-04 05:03:15 +00:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/description_text"
|
2020-07-15 13:14:29 +00:00
|
|
|
app:onboardingKey="@string/pref_key_tracking_protection_standard_option"
|
|
|
|
app:onboardingKeyDescription="@string/onboarding_tracking_protection_standard_button_description_2"
|
|
|
|
app:onboardingKeyTitle="@string/onboarding_tracking_protection_standard_button_2"
|
|
|
|
tools:text="Standard" />
|
2020-02-07 10:11:23 +00:00
|
|
|
|
2020-02-04 05:03:15 +00:00
|
|
|
<org.mozilla.fenix.onboarding.OnboardingRadioButton
|
|
|
|
android:id="@+id/tracking_protection_strict_default"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-02-04 05:03:15 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:background="@android:color/transparent"
|
2020-05-28 23:28:21 +00:00
|
|
|
android:checked="false"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:foreground="@drawable/rounded_ripple"
|
|
|
|
android:gravity="top"
|
|
|
|
android:paddingStart="8dp"
|
2020-02-04 05:03:15 +00:00
|
|
|
android:paddingEnd="8dp"
|
2020-07-15 13:14:29 +00:00
|
|
|
android:textColor="@color/primary_state_list_text_color"
|
2020-05-08 06:15:46 +00:00
|
|
|
android:theme="@style/Checkable.Colored"
|
2020-02-04 05:03:15 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tracking_protection_standard_option"
|
2020-07-15 13:14:29 +00:00
|
|
|
app:onboardingKey="@string/pref_key_tracking_protection_strict_default"
|
|
|
|
app:onboardingKeyDescription="@string/onboarding_tracking_protection_strict_button_description_2"
|
|
|
|
app:onboardingKeyTitle="@string/onboarding_tracking_protection_strict_option"
|
|
|
|
tools:text="Strict" />
|
2020-07-21 01:20:29 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|