2021-05-12 13:02:44 -03: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:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/dsl_preference_item_background"
|
|
|
|
android:minHeight="56dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="@dimen/dsl_settings_gutter"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:srcCompat="@drawable/ic_advanced_24" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="24dp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyLarge"
|
2021-05-12 13:02:44 -03:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/summary"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/switch_widget"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/icon"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
app:layout_goneMarginBottom="16dp"
|
|
|
|
app:layout_goneMarginStart="@dimen/dsl_settings_gutter"
|
|
|
|
tools:text="Message font size" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/summary"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="24dp"
|
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:lineSpacingExtra="4sp"
|
2022-05-26 17:32:52 -03:00
|
|
|
android:textAppearance="@style/Signal.Text.BodyMedium"
|
2021-05-12 13:02:44 -03:00
|
|
|
android:textColor="@color/text_color_secondary_enabled_selector"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/switch_widget"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/icon"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/title"
|
|
|
|
app:layout_goneMarginStart="@dimen/dsl_settings_gutter"
|
|
|
|
app:layout_goneMarginTop="16dp"
|
|
|
|
tools:text="Some random text to get stuff onto more than one line but not absurdly long like lorem/random"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/switch_widget"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/dsl_settings_gutter"
|
|
|
|
android:clickable="false"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2022-06-10 12:54:49 -03:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:useMaterialThemeColors="true" />
|
2021-05-12 13:02:44 -03:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|