Bug 1849073 - Part 1: Remove the Bookmark Search Dialog
[gecko.git] / mobile / android / fenix / app / src / main / res / layout / quicksettings_protections_panel.xml
blobcbfa0a812aa701902d663fbedc9d6b62d29d5013
1 <?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
2    - License, v. 2.0. If a copy of the MPL was not distributed with this
3    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
6     xmlns:app="http://schemas.android.com/apk/res-auto"
7     android:layout_width="match_parent"
8     android:layout_height="wrap_content">
10     <androidx.compose.ui.platform.ComposeView
11         android:id="@+id/cookieBannerItem"
12         android:layout_width="match_parent"
13         android:layout_height="wrap_content"
14         android:minHeight="@dimen/tracking_protection_item_height"
15         app:layout_constraintBottom_toTopOf="@id/trackingProtectionSwitch"
16         app:layout_constraintTop_toTopOf="parent" />
18     <org.mozilla.fenix.trackingprotection.SwitchWithDescription
19         android:id="@+id/trackingProtectionSwitch"
20         android:layout_width="match_parent"
21         android:layout_height="wrap_content"
22         android:layout_marginTop="16dp"
23         android:minHeight="@dimen/tracking_protection_item_height"
24         android:text="@string/preference_enhanced_tracking_protection"
25         app:layout_constraintBottom_toTopOf="@id/trackingProtectionDetails"
26         app:layout_constraintTop_toBottomOf="@id/cookieBannerItem"
27         app:switchDescriptionOff="@string/etp_panel_off"
28         app:switchDescriptionOn="@string/etp_panel_on"
29         app:switchIconOff="@drawable/ic_tracking_protection_disabled"
30         app:switchIconOn="@drawable/ic_tracking_protection_enabled"
31         app:switchTitle="@string/preference_enhanced_tracking_protection" />
33     <TextView
34         android:id="@+id/trackingProtectionDetails"
35         style="@style/QuickSettingsText.Icon"
36         android:layout_width="0dp"
37         android:layout_height="@dimen/quicksettings_item_height"
38         android:layout_alignParentEnd="true"
39         android:gravity="end|center_vertical"
40         android:text="@string/enhanced_tracking_protection_details"
41         android:visibility="gone"
42         app:drawableEndCompat="@drawable/ic_arrowhead_right"
43         app:layout_constraintBottom_toBottomOf="parent"
44         app:layout_constraintEnd_toEndOf="parent"
45         app:layout_constraintStart_toStartOf="parent" />
47 </androidx.constraintlayout.widget.ConstraintLayout>