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
- 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/photonGrey70">
<ImageButton
android:id="@+id/backButton"
style="@style/NavigationButton"
android:layout_width="@dimen/button_size"
android:layout_height="@dimen/button_size"
android:layout_marginStart="64dp"
android:layout_marginTop="32dp"
android:src="@drawable/ic_tv_back"
android:contentDescription="@string/content_description_back"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/title"
style="@style/TextAppearance.AppCompat.Large"
android:layout_width="0dp"
android:layout_height="@dimen/button_size"
android:layout_marginStart="32dp"
android:layout_marginTop="32dp"
android:gravity="center_vertical"
android:text="@string/preference_mozilla_telemetry2"
android:fontFamily="@string/font_ember_regular"
android:textSize="32sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/backButton"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/toggle"
style="@style/SwitchCompatStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="140dp"
android:contentDescription="@string/preference_mozilla_telemetry2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/description">
<requestFocus />
</androidx.appcompat.widget.SwitchCompat>
<!-- Text set programmatically in order to format string -->
<TextView
android:id="@+id/description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="48dp"
android:fontFamily="@string/font_ember_regular"
android:textSize="18sp"
app:layout_constraintEnd_toStartOf="@id/toggle"
app:layout_constraintStart_toStartOf="@+id/title"
app:layout_constraintTop_toBottomOf="@+id/title" />
</androidx.constraintlayout.widget.ConstraintLayout>