2019-09-10 20:29:21 +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-09-12 03:06:10 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-09-10 20:29:21 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2019-09-12 03:06:10 +00:00
|
|
|
android:layout_height="match_parent">
|
2019-09-10 20:29:21 +00:00
|
|
|
|
|
|
|
<TextView
|
2019-09-12 03:06:10 +00:00
|
|
|
android:layout_marginTop="4dp"
|
2019-12-21 22:14:50 +00:00
|
|
|
android:id="@+id/trackingProtectionCategoryTitle"
|
2019-09-10 20:29:21 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="48dp"
|
|
|
|
android:layout_marginEnd="64dp"
|
|
|
|
android:clickable="false"
|
2020-03-23 16:19:20 +00:00
|
|
|
android:focusable="false"
|
|
|
|
android:importantForAccessibility="no"
|
2019-09-10 20:29:21 +00:00
|
|
|
android:textAppearance="@style/ListItemTextStyle"
|
|
|
|
android:textSize="16sp"
|
2020-07-21 01:20:29 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/trackingProtectionCategoryItemDescription"
|
2019-09-10 20:29:21 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="@tools:sample/lorem" />
|
|
|
|
|
|
|
|
<TextView
|
2019-12-21 22:14:50 +00:00
|
|
|
android:id="@+id/trackingProtectionCategoryItemDescription"
|
2019-09-10 20:29:21 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clickable="false"
|
2020-03-23 16:19:20 +00:00
|
|
|
android:focusable="false"
|
|
|
|
android:importantForAccessibility="no"
|
2019-09-10 20:29:21 +00:00
|
|
|
android:textColor="?attr/secondaryText"
|
2019-09-12 03:06:10 +00:00
|
|
|
android:layout_marginBottom="4dp"
|
2019-09-10 20:29:21 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-12-21 22:14:50 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/trackingProtectionCategoryTitle"
|
2019-09-10 20:29:21 +00:00
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
2019-12-21 22:14:50 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@id/trackingProtectionCategoryTitle"
|
2020-07-21 01:20:29 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/trackingProtectionCategoryTitle"
|
2019-09-10 20:29:21 +00:00
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:text="@tools:sample/lorem" />
|
|
|
|
|
2020-06-02 12:01:14 +00:00
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
2019-09-10 20:29:21 +00:00
|
|
|
android:id="@+id/switch_widget"
|
2020-03-23 16:19:20 +00:00
|
|
|
style="@style/QuickSettingsText.Icon"
|
2020-06-02 12:01:14 +00:00
|
|
|
android:minHeight="@dimen/tracking_protection_item_height"
|
2019-09-10 20:29:21 +00:00
|
|
|
android:layout_width="match_parent"
|
2020-03-23 16:19:20 +00:00
|
|
|
android:layout_height="match_parent"
|
2020-03-29 19:35:59 +00:00
|
|
|
android:textOff="@string/etp_panel_off"
|
|
|
|
android:textOn="@string/etp_panel_on"
|
2019-12-06 03:54:32 +00:00
|
|
|
app:drawableStartCompat="@drawable/ic_tracking_protection"
|
2019-12-21 22:14:50 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/trackingProtectionCategoryItemDescription"
|
2019-09-10 20:29:21 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-03-23 16:19:20 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-09-12 03:06:10 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|