2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-09 19:10:42 +00:00
iceraven-browser/app/src/main/res/layout/switch_with_description.xml

61 lines
2.9 KiB
XML
Raw Normal View History

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/. -->
<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"
android:layout_height="match_parent">
2019-09-10 20:29:21 +00:00
<TextView
android:layout_marginTop="4dp"
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"
android:focusable="false"
android:importantForAccessibility="no"
2019-09-10 20:29:21 +00:00
android:textAppearance="@style/ListItemTextStyle"
android:textSize="16sp"
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
android:id="@+id/trackingProtectionCategoryItemDescription"
2019-09-10 20:29:21 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:clickable="false"
android:focusable="false"
android:importantForAccessibility="no"
2019-09-10 20:29:21 +00:00
android:textColor="?attr/secondaryText"
android:layout_marginBottom="4dp"
2019-09-10 20:29:21 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@id/trackingProtectionCategoryTitle"
2019-09-10 20:29:21 +00:00
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="@id/trackingProtectionCategoryTitle"
app:layout_constraintTop_toBottomOf="@id/trackingProtectionCategoryTitle"
2019-09-10 20:29:21 +00:00
app:layout_constraintVertical_chainStyle="packed"
tools:text="@tools:sample/lorem" />
<androidx.appcompat.widget.SwitchCompat
2019-09-10 20:29:21 +00:00
android:id="@+id/switch_widget"
style="@style/QuickSettingsText.Icon"
android:minHeight="@dimen/tracking_protection_item_height"
2019-09-10 20:29:21 +00:00
android:layout_width="match_parent"
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"
app:drawableStartCompat="@drawable/ic_tracking_protection"
app:layout_constraintBottom_toBottomOf="@id/trackingProtectionCategoryItemDescription"
2019-09-10 20:29:21 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>