You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FoxMagiskModuleManager/app/src/main/res/layout/activity_crash_handler.xml

157 lines
6.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 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:id="@+id/crash_icon"
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:id="@+id/crash_text"
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" />
<!-- smaller details may be found below 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/more_details"
android:textSize="16sp" />
<!-- copyable crash_details body with copy button in top right corner -->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<HorizontalScrollView 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:id="@+id/copy_button"
android:layout_width="28dp"
android:layout_height="28dp"
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:id="@+id/feedback"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- feedback form name -->
<EditText
android:id="@+id/feedback_name"
android:layout_width="320dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:hint="@string/feedback_name"
android:inputType="text" />
<!-- feedback form email -->
<EditText
android:id="@+id/feedback_email"
android:layout_width="320dp"
android:layout_height="48dp"
android:layout_margin="10dp"
android:hint="@string/feedback_email"
android:inputType="textEmailAddress" />
<!-- feedback form message -->
<EditText
android:id="@+id/feedback_message"
android:layout_width="320dp"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:hint="@string/feedback_message"
android:inputType="textMultiLine" />
<!-- 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:layout_margin="10dp"
android:text="@string/feedback_submit" />
<!-- 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>
</LinearLayout>
</ScrollView>