<?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="match_parent"
    android:background="@android:color/holo_blue_dark"
    tools:context="org.kiwix.kiwixmobile.error.ErrorActivity"
    >

  <TextView
      android:id="@+id/messageText"
      android:layout_width="332dp"
      android:layout_height="72dp"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="8dp"
      android:text="@string/crash_description"
      android:textAlignment="center"
      android:textColor="@color/white"
      android:textSize="14sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/imageView2"
      />

  <Button
      android:id="@+id/reportButton"
      android:layout_width="120dp"
      android:layout_height="wrap_content"
      android:layout_marginBottom="32dp"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:background="@color/white"
      android:text="@string/crash_button_confirm"
      android:textColor="@color/black_regular_mat_design"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.173"
      app:layout_constraintStart_toStartOf="parent"
      style="@style/Widget.AppCompat.Button"
      />

  <Button
      android:id="@+id/restartButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginBottom="32dp"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:text="@string/crash_button_decline"
      android:textColor="@color/blue_grey"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.769"
      app:layout_constraintStart_toStartOf="parent"
      style="?android:attr/borderlessButtonStyle"
      />

  <TextView
      android:id="@+id/textView2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="60dp"
      android:text="@string/crash_title"
      android:textColor="@color/white"
      android:textSize="24sp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.505"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      />

  <ImageView
      android:id="@+id/imageView2"
      android:layout_width="0dp"
      android:layout_height="70dp"
      android:layout_marginEnd="8dp"
      android:layout_marginStart="8dp"
      android:layout_marginTop="12dp"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.0"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/textView2"
      app:srcCompat="@mipmap/kiwix_icon"
      />

  <ScrollView
      android:layout_width="368dp"
      android:layout_height="233dp"
      android:layout_marginBottom="8dp"
      android:layout_marginTop="17dp"
      app:layout_constraintBottom_toTopOf="@+id/reportButton"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/messageText"
      tools:layout_editor_absoluteX="8dp"
      >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        >

      <CheckBox
          android:id="@+id/allowLanguage"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="100dp"
          android:layout_marginStart="100dp"
          android:layout_marginTop="8dp"
          android:checked="true"
          android:text="@string/crash_checkbox_language"
          android:textColor="@color/white"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/messageText"
          style="@android:style/Widget.Holo.CompoundButton.CheckBox"
          />

      <CheckBox
          android:id="@+id/allowLogs"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="100dp"
          android:layout_marginStart="100dp"
          android:layout_marginTop="8dp"
          android:checked="true"
          android:text="@string/crash_checkbox_logs"
          android:textColor="@color/white"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/allowCrash"
          style="@android:style/Widget.Holo.CompoundButton.CheckBox"
          />

      <CheckBox
          android:id="@+id/allowCrash"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="100dp"
          android:layout_marginStart="100dp"
          android:layout_marginTop="8dp"
          android:checked="true"
          android:text="@string/crash_checkbox_exception"
          android:textColor="@color/white"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/allowZims"
          style="@android:style/Widget.Holo.CompoundButton.CheckBox"
          />

      <CheckBox
          android:id="@+id/allowZims"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="100dp"
          android:layout_marginStart="100dp"
          android:layout_marginTop="8dp"
          android:checked="true"
          android:text="@string/crash_checkbox_zimfiles"
          android:textColor="@color/white"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/allowLanguage"
          style="@android:style/Widget.Holo.CompoundButton.CheckBox"
          />

      <CheckBox
          android:id="@+id/allowDeviceDetails"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="100dp"
          android:layout_marginStart="100dp"
          android:layout_marginTop="8dp"
          android:checked="true"
          android:text="@string/crash_checkbox_device"
          android:textColor="@color/white"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/allowLogs"
          style="@android:style/Widget.Holo.CompoundButton.CheckBox"
          />
    </LinearLayout>
  </ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
