<?xml version="1.0" encoding="utf-8"?><!--
- ~ Copyright © 2019 Damyan Ivanov.
+ ~ Copyright © 2020 Damyan Ivanov.
~ This file is part of MoLe.
~ MoLe is free software: you can distribute it and/or modify it
~ under the term of the GNU General Public License as published by
~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<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"
- android:orientation="horizontal">
+ >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:gravity="center_vertical"
- android:orientation="vertical">
-
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/new_transaction_saving"
- android:textAlignment="center"
- android:textSize="18sp" />
- <ProgressBar
- style="@style/Widget.AppCompat.ProgressBar.Horizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:indeterminate="true"
- android:progressTint="@color/colorAccent" />
+ <ImageView
+ android:id="@+id/imageView"
+ android:layout_width="180dp"
+ android:layout_height="180dp"
+ android:tint="?colorPrimary"
+ app:layout_constraintBottom_toTopOf="@id/progressBar"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintVertical_chainStyle="packed"
+ app:srcCompat="@drawable/app_icon_transparent_bg"
+ android:contentDescription="@string/splash_icon_description"
+ />
+ <ProgressBar
+ android:id="@+id/progressBar"
+ style="@style/Widget.AppCompat.ProgressBar.Horizontal"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:indeterminate="true"
+ android:progressTint="?attr/colorPrimary"
+ app:layout_constraintBottom_toTopOf="@id/textView4"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/imageView"
+ />
+ <TextView
+ android:id="@+id/textView4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/new_transaction_saving"
+ android:textAlignment="center"
+ android:textSize="18sp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/progressBar"
+ />
+ <androidx.core.widget.ContentLoadingProgressBar
+ android:layout_width="60dp"
+ android:layout_height="60dp"
+ android:indeterminate="true"
+ android:indeterminateTint="?colorPrimary"
+ android:progressTint="?colorPrimary"
+ app:growMode="incoming"
+ app:layout_constraintBottom_toBottomOf="@id/textView4"
+ app:layout_constraintEnd_toStartOf="@id/textView4"
+ app:layout_constraintTop_toTopOf="@id/textView4"
+ />
- </LinearLayout>
-</LinearLayout>
\ No newline at end of file
+</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file