<?xml version="1.0" encoding="utf-8"?> <!--
~ Copyright (c) 2023 to present Androidacy and contributors. Names, logos, icons, and the Androidacy name are all trademarks of Androidacy and may not be used without license. See LICENSE for more information.
-->
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- layout with crash_text header and crash_details body -->
<!-- first, crash icon -->
<ImageView
android:layout_width="101dp"
android:layout_height="93dp"
android:layout_gravity="center"
android:layout_margin="8dp"
android:contentDescription="@string/crash_icon"
android:src="@drawable/ic_baseline_bug_report_24" />
<!-- crash_text header -->
<com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="center"
android:text="@string/crash_text"
android:textSize="20sp"
android:textStyle="bold" />
<!-- textview suggesting user use the submit feedback button instead of manually copying the crash details -->
<com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="fill"
android:text="@string/crash_details_suggestion"
android:textSize="14sp" />
<!-- copyable crash_details body with copy button in top right corner -->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<HorizontalScrollView
android:id="@+id/crash_details_scroll"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/crash_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="24dp"
android:fontFamily="monospace"
android:gravity="start"
android:minHeight="48dp"
android:padding="12dp"
android:scrollbars="vertical|horizontal"
android:scrollHorizontally="true"
android:text="@string/crash_details"
android:textIsSelectable="false"
android:textSize="16sp" />
</HorizontalScrollView>
<com.google.android.material.button.MaterialButton
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_gravity="top|end"
android:layout_margin="10dp"
android:background="@drawable/baseline_copy_all_24"
android:contentDescription="@string/copy_button"
android:onClick="copyCrashDetails"
android:padding="4dp" />
</FrameLayout>
<!-- feedback form -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- feedback form header -->
<com.google.android.material.textview.MaterialTextView
android:id="@+id/feedback_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="fill"
android:text="@string/please_feedback"
android:textSize="18sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- feedback form name -->
<EditText
android:id="@+id/feedback_name"
android:enabled="false"
android:layout_width="320dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:hint="@string/feedback_name"
android:inputType="text"
android:autofillHints="name" />
<!-- feedback form email -->
<EditText
android:id="@+id/feedback_email"
android:layout_width="320dp"
android:layout_height="48dp"
android:enabled="false"
android:layout_margin="10dp"
android:hint="@string/feedback_email"
android:inputType="textEmailAddress"
android:autofillHints="emailAddress" />
<!-- feedback form message -->
<EditText
android:id="@+id/feedback_message"
android:enabled="false"
android:layout_width="320dp"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:hint="@string/feedback_message"
android:inputType="textMultiLine"
android:importantForAutofill="no" />
</LinearLayout>
<!-- button group for submit feedback & restart / restart only -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<!-- submit feedback button -->
<com.google.android.material.button.MaterialButton
android:id="@+id/feedback_submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false"
android:layout_margin="10dp"
android:text="@string/submit_feedback" />
<!-- restart button -->
<com.google.android.material.button.MaterialButton
android:id="@+id/restart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="@string/restart" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.textview.MaterialTextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:gravity="fill"
android:text="@string/reset_warning"
android:textSize="16sp" />
<!-- reset app button -->
<com.google.android.material.button.MaterialButton
android:id="@+id/reset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="@string/reset_app" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>