Revision control
Copy as Markdown
<?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
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_marginTop="4dp"
android:id="@+id/switch_with_description_title"
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"
android:textAppearance="@style/ListItemTextStyle"
android:textSize="16sp"
app:layout_constraintBottom_toTopOf="@id/switch_with_description_description"
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/switch_with_description_description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:clickable="false"
android:focusable="false"
android:importantForAccessibility="no"
android:textColor="?attr/textSecondary"
android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@id/switch_with_description_title"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="@id/switch_with_description_title"
app:layout_constraintTop_toBottomOf="@id/switch_with_description_title"
app:layout_constraintVertical_chainStyle="packed"
tools:text="@tools:sample/lorem" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/switch_widget"
style="@style/QuickSettingsText.Icon"
android:minHeight="@dimen/tracking_protection_item_height"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="@id/switch_with_description_description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>