2019-09-13 11:40:32 -03:00
|
|
|
<?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">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/imageView"
|
2022-05-03 20:14:55 +02:00
|
|
|
style="@style/SudHeaderIcon"
|
2019-09-13 11:40:32 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:srcCompat="@drawable/ic_storage"
|
2021-10-07 13:44:55 -03:00
|
|
|
app:tint="?android:colorAccent"
|
2019-09-13 11:40:32 -03:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/titleView"
|
2022-05-03 20:14:55 +02:00
|
|
|
style="@style/SudHeaderTitle"
|
2020-10-06 17:18:02 -03:00
|
|
|
android:layout_width="0dp"
|
2019-09-13 11:40:32 -03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/storage_fragment_backup_title"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-04-20 11:29:16 -03:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/imageView"
|
|
|
|
|
tools:text="Choose where to store backup (is a short title, but it can be longer)" />
|
2019-09-13 11:40:32 -03:00
|
|
|
|
2019-09-13 17:14:11 -03:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/warningIcon"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-03 20:14:55 +02:00
|
|
|
android:layout_marginStart="40dp"
|
2019-09-13 17:14:11 -03:00
|
|
|
android:src="@drawable/ic_warning"
|
|
|
|
|
android:visibility="gone"
|
2021-04-20 11:29:16 -03:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/warningText"
|
2019-09-13 17:14:11 -03:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-04-20 11:29:16 -03:00
|
|
|
app:layout_constraintTop_toTopOf="@+id/warningText"
|
2019-09-13 17:14:11 -03:00
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/warningText"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
2022-05-03 20:14:55 +02:00
|
|
|
android:layout_marginEnd="40dp"
|
2019-09-13 17:14:11 -03:00
|
|
|
android:text="@string/storage_fragment_warning"
|
|
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/warningIcon"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/titleView"
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
2019-09-13 11:40:32 -03:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:id="@+id/listView"
|
2022-05-03 20:14:55 +02:00
|
|
|
style="@style/SudContent"
|
2019-09-13 11:40:32 -03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
2021-08-24 04:32:04 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/skipView"
|
2019-09-13 11:40:32 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-05-03 20:14:55 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/warningText"
|
2019-09-13 17:14:11 -03:00
|
|
|
app:layout_goneMarginTop="16dp"
|
2019-09-13 11:40:32 -03:00
|
|
|
tools:listitem="@layout/list_item_storage_root" />
|
|
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
|
style="?android:progressBarStyleLarge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2021-08-24 04:32:04 +03:00
|
|
|
app:layout_constraintBottom_toTopOf="@+id/skipView"
|
2019-09-13 11:40:32 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/titleView" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
2021-08-24 04:32:04 +03:00
|
|
|
android:id="@+id/skipView"
|
2022-05-03 20:14:55 +02:00
|
|
|
style="@style/SudSecondaryButton"
|
2019-09-13 11:40:32 -03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-03 20:14:55 +02:00
|
|
|
android:layout_marginStart="40dp"
|
2021-06-22 11:27:47 -03:00
|
|
|
android:background="?android:selectableItemBackground"
|
2021-08-24 04:32:04 +03:00
|
|
|
android:text="@string/restore_skip"
|
2019-09-13 11:40:32 -03:00
|
|
|
android:textColor="?android:colorAccent"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/listView"
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|