<?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:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#FAFEFD"
    tools:context=".ui.SplashActivity">

    <!-- 鹿的线稿绘制View（可爱小鹿正面版） -->
    <com.draw.painting.line.ui.DeerVectorDrawView
        android:id="@+id/deer_view"
        android:layout_width="240dp"
        android:layout_height="300dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@id/tv_loading_text"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintVertical_chainStyle="packed"
        android:layout_marginTop="60dp" />

    <!-- 加载文案 -->
    <TextView
        android:id="@+id/tv_loading_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/preparing_your_sketchbook"
        android:textColor="#2F3A3A"
        android:textSize="16sp"
        android:fontFamily="sans-serif"
        app:layout_constraintTop_toBottomOf="@id/deer_view"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:layout_marginTop="40dp" />

    <!-- 加载条 -->
    <FrameLayout
        android:id="@+id/progress_container"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="60dp"
        android:layout_marginEnd="60dp"
        android:layout_marginTop="24dp"
        app:layout_constraintTop_toBottomOf="@id/tv_loading_text"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent">

<!--        &lt;!&ndash; 背景条 &ndash;&gt;-->
<!--        <View-->
<!--            android:layout_width="match_parent"-->
<!--            android:layout_height="6dp"-->
<!--            android:background="@drawable/progress_bg" />-->

<!--        &lt;!&ndash; 进度条 &ndash;&gt;-->
<!--        <View-->
<!--            android:id="@+id/progress_bar"-->
<!--            android:layout_width="0dp"-->
<!--            android:layout_height="6dp"-->
<!--            android:background="@drawable/progress_fill"-->
<!--            android:layout_gravity="start|center_vertical" />-->
        <ProgressBar
            android:id="@+id/progressbar"
            style="?android:attr/progressBarStyleHorizontal"
            android:layout_width="match_parent"
            android:layout_height="6dp"
            android:layout_centerHorizontal="true"
            android:max="100"
            android:progress="1"
            android:progressDrawable="@drawable/progress_fill"
            android:layout_marginTop="1dp"/>

    </FrameLayout>

</androidx.constraintlayout.widget.ConstraintLayout>

