<?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"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:id="@+id/data_uploaded_error_progress_bar"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:src="@drawable/ic_upload_failed"
        app:layout_constraintHeight_percent="0.3"
        app:layout_constraintBottom_toTopOf="@+id/home_data_uploaded_error_message"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_chainStyle="spread" />

    <TextView
        android:id="@+id/home_data_uploaded_title"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/keyline_7"
        android:layout_marginEnd="@dimen/keyline_7"
        android:text="@string/upload_fail_heading"
        android:gravity="center_horizontal"
        android:textAppearance="?textAppearanceHeadline1"
        android:textSize="28sp"
        app:layout_constraintBottom_toTopOf="@+id/home_data_uploaded_error_message"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/data_uploaded_error_progress_bar"
        app:layout_constraintVertical_chainStyle="spread" />

    <TextView
        android:id="@+id/home_data_uploaded_error_message"
        style="?textAppearanceBody1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/keyline_7"
        android:layout_marginEnd="@dimen/keyline_7"
        android:text="@string/dialog_error_uploading_message"
        android:gravity="center_horizontal"
        app:layout_constraintBottom_toTopOf="@+id/dialog_error_positive"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/home_data_uploaded_title"
        app:layout_constraintVertical_chainStyle="spread" />

    <Button
        android:id="@+id/dialog_error_positive"
        style="?attr/textAppearanceButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/keyline_4"
        android:layout_marginTop="@dimen/keyline_5"
        android:layout_marginEnd="@dimen/keyline_4"
        android:text="@string/dialog_error_uploading_positive"
        app:layout_constraintBottom_toTopOf="@+id/dialog_error_negative"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/home_data_uploaded_error_message"
        app:layout_constraintVertical_chainStyle="packed" />

    <Button
        android:id="@+id/dialog_error_negative"
        style="?attr/materialButtonOutlinedStyle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/keyline_4"
        android:layout_marginTop="@dimen/keyline_2"
        android:layout_marginEnd="@dimen/keyline_4"
        android:text="@string/dialog_error_uploading_negative"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintVertical_chainStyle="packed"
        app:layout_constraintTop_toBottomOf="@+id/dialog_error_positive" />

</androidx.constraintlayout.widget.ConstraintLayout>