2019-07-02 13:34:36 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/rootLayout"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:foreground="?attr/selectableItemBackground">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/material_preference_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2019-07-03 14:50:43 +02:00
|
|
|
android:textAppearance="@style/AppTheme.TextAppearance.ListTitle"
|
2019-07-02 13:34:36 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/material_preference_switch"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-07-24 12:06:52 +02:00
|
|
|
tools:text="Title"/>
|
2019-07-02 13:34:36 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/material_preference_subtitle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
android:focusableInTouchMode="false"
|
2019-07-03 14:50:43 +02:00
|
|
|
android:textAppearance="@style/AppTheme.TextAppearance.ListSubtitle"
|
2019-07-02 13:34:36 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/material_preference_switch"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/material_preference_title"
|
2019-10-10 13:51:24 +02:00
|
|
|
tools:text="Subtitle" />
|
2019-07-02 13:34:36 +02:00
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/material_preference_switch"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/material_preference_subtitle"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-07-24 12:06:52 +02:00
|
|
|
app:layout_constraintTop_toTopOf="@id/material_preference_title"/>
|
2019-07-02 13:34:36 +02:00
|
|
|
|
2019-07-24 12:06:52 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|