Change root view of `preference_toggle_header`

pull/166/head
Zakhar Timoshenko 4 years ago
parent 6405523232
commit 2a97cb34d7

@ -1,18 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
<com.google.android.material.card.MaterialCardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:paddingBottom="8dp">
<com.google.android.material.card.MaterialCardView
style="@style/Widget.Material3.CardView.Filled"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginVertical="8dp"
android:paddingBottom="8dp"
app:cardCornerRadius="24dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -40,7 +36,7 @@
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
android:textSize="20sp"
tools:text="Title"/>
tools:text="Title" />
<TextView
android:id="@android:id/summary"
@ -50,7 +46,7 @@
android:layout_gravity="start"
android:maxLines="10"
android:textAppearance="@style/TextAppearance.Material3.TitleSmall"
tools:text="Subtitle"/>
tools:text="Subtitle" />
</LinearLayout>
@ -65,6 +61,4 @@
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>
Loading…
Cancel
Save