83 lines
3.3 KiB
XML
83 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
SPDX-FileCopyrightText: 2020 The Calyx Institute
|
|
SPDX-License-Identifier: Apache-2.0
|
|
-->
|
|
<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">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
style="@style/SudHeaderIcon"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_storage"
|
|
app:tint="?android:colorAccent"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<TextView
|
|
android:id="@+id/titleView"
|
|
style="@style/SudHeaderTitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/imageView"
|
|
tools:text="@string/storage_check_fragment_backup_title" />
|
|
|
|
<TextView
|
|
android:id="@+id/patienceView"
|
|
style="@style/SudContent"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/storage_check_fragment_patience"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/titleView" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="?android:progressBarStyleLarge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="40dp"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginEnd="40dp"
|
|
app:layout_constraintBottom_toTopOf="@+id/backButton"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/patienceView"
|
|
app:layout_constraintVertical_bias="0.0" />
|
|
|
|
<TextView
|
|
android:id="@+id/errorView"
|
|
style="@style/SudContent"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:colorError"
|
|
android:textSize="18sp"
|
|
android:visibility="invisible"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/patienceView"
|
|
app:layout_constraintVertical_bias="0.0"
|
|
tools:text="@string/storage_check_fragment_backup_error"
|
|
tools:visibility="visible" />
|
|
|
|
<Button
|
|
android:id="@+id/backButton"
|
|
style="@style/SudSecondaryButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="40dp"
|
|
android:text="@string/storage_check_fragment_error_button"
|
|
android:visibility="invisible"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
tools:visibility="visible" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|