<?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:layout_gravity="center_vertical"
    android:background="@color/splash_background"
    android:backgroundTint="@color/splash_frame_background"
    tools:context=".ui.splash.SplashActivity"
    >

    <ImageView
        android:id="@+id/splash_screen_crest"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:background="@color/black"
        android:padding="@dimen/keyline_7"
        android:src="@drawable/australian_government_stacked_white"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintHeight_percent="0.33"
        />

    <androidx.appcompat.widget.AppCompatTextView
        style="?textAppearanceBody2"
        android:id="@+id/splash_migration_text"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/keyline_2"
        android:layout_marginStart="@dimen/keyline_2"
        android:layout_marginEnd="@dimen/keyline_2"
        android:text="@string/migration_in_progress"
        android:gravity="center"
        android:visibility="gone"
        app:layout_constraintWidth_percent="0.75"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/splash_screen_crest"
        app:layout_constraintBottom_toTopOf="@+id/splash_screen_logo"
        tools:text="@string/migration_in_progress"
        />

    <com.airbnb.lottie.LottieAnimationView
        android:id="@+id/splash_screen_logo"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:adjustViewBounds="true"
        android:src="@drawable/ic_splash_screen_logo"
        android:layout_margin="@dimen/keyline_2"
        app:layout_constraintWidth_percent="0.75"
        app:layout_constraintBottom_toTopOf="@+id/help_stop_covid"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/splash_migration_text"
        app:layout_constraintVertical_chainStyle="spread"
        app:lottie_autoPlay="false"
        app:lottie_loop="true"
        app:lottie_speed="1"/>

    <ImageView
        android:id="@+id/help_stop_covid"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:adjustViewBounds="true"
        android:src="@drawable/ic_help_stop_covid"
        android:layout_marginStart="@dimen/keyline_2"
        android:layout_marginTop="@dimen/keyline_2"
        android:layout_marginEnd="@dimen/keyline_2"
        android:layout_marginBottom="@dimen/keyline_9"
        app:layout_constraintTop_toBottomOf="@+id/splash_screen_logo"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintVertical_chainStyle="spread" />

</androidx.constraintlayout.widget.ConstraintLayout>