<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:paddingRight="28dp"
        android:paddingLeft="28dp"
        android:clipToPadding="false">

        <ImageView
            android:id="@+id/handle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="10dp"
            android:importantForAccessibility="no"
            app:srcCompat="@drawable/bottom_sheet_handle" />

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:layout_marginTop="30dp"
            android:importantForAccessibility="no"
            app:srcCompat="@drawable/ic_error_triangle_24" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="24dp"
            android:layout_marginBottom="16dp"
            android:gravity="center"
            android:text="@string/CdsPermanentErrorBottomSheet_title"
            android:textAppearance="@style/Signal.Text.TitleLarge" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="16dp"
            android:textAppearance="@style/Signal.Text.BodyMedium"
            android:textColor="@color/signal_colorOnSurfaceVariant"
            android:text="@string/CdsPermanentErrorBottomSheet_body" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/learn_more_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="20dp"
            android:layout_marginLeft="-12dp"
            android:text="@string/CdsPermanentErrorBottomSheet_learn_more"
            style="@style/Widget.Signal.Button.TextButton" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/settings_button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end"
            android:layout_marginBottom="28dp"
            android:text="@string/CdsPermanentErrorBottomSheet_contacts_button"
            style="@style/Signal.Widget.Button.Medium.Tonal" />

    </LinearLayout>
</androidx.core.widget.NestedScrollView>