forked from upstream-mirrors/quik
186 lines
8.1 KiB
XML
186 lines
8.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2019 Moez Bhatti <moez.bhatti@gmail.com>
|
|
~
|
|
~ This file is part of QKSMS.
|
|
~
|
|
~ QKSMS is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ QKSMS is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
<FrameLayout 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">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linearLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/progress"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/progressIcon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginStart="16dp"
|
|
app:tint="?android:attr/textColorSecondary"
|
|
app:layout_constraintBottom_toBottomOf="@id/progressSummary"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/progressTitle"
|
|
tools:src="@drawable/ic_file_download_black_24dp" />
|
|
|
|
<dev.octoshrimpy.quik.common.widget.QkTextView
|
|
android:id="@+id/progressTitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginTop="16dp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toStartOf="@id/progressCancel"
|
|
app:layout_constraintStart_toEndOf="@id/progressIcon"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:textSize="primary"
|
|
tools:text="Restoring from backup" />
|
|
|
|
<dev.octoshrimpy.quik.common.widget.QkTextView
|
|
android:id="@+id/progressSummary"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
app:layout_constraintEnd_toEndOf="@id/progressTitle"
|
|
app:layout_constraintStart_toStartOf="@id/progressTitle"
|
|
app:layout_constraintTop_toBottomOf="@id/progressTitle"
|
|
app:textSize="secondary"
|
|
tools:text="8 minutes remaining" />
|
|
|
|
<ImageView
|
|
android:id="@+id/progressCancel"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:padding="16dp"
|
|
android:src="@drawable/ic_close_black_24dp"
|
|
app:tint="?android:attr/textColorSecondary"
|
|
app:layout_constraintBottom_toBottomOf="@id/progressSummary"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/progressTitle" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:indeterminate="true"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="@id/progressTitle"
|
|
app:layout_constraintTop_toBottomOf="@id/progressSummary" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="16dp"
|
|
android:background="?android:attr/divider"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/progressBar" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<dev.octoshrimpy.quik.common.widget.PreferenceView
|
|
android:id="@+id/location"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:icon="@drawable/ic_baseline_folder_24"
|
|
app:title="@string/backup_location_title"
|
|
app:summary="@string/backup_location_summary" />
|
|
|
|
<dev.octoshrimpy.quik.common.widget.PreferenceView
|
|
android:id="@+id/restore"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:icon="@drawable/ic_file_download_black_24dp"
|
|
app:summary="@string/backup_restore_summary"
|
|
app:title="@string/backup_restore_title" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?android:attr/divider" />
|
|
|
|
<dev.octoshrimpy.quik.common.widget.QkTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="24dp"
|
|
android:text="@string/backup_disclaimer"
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
app:textSize="secondary" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="48dp"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_margin="16dp"
|
|
android:background="@drawable/rounded_rectangle_24dp"
|
|
android:elevation="4dp"
|
|
android:gravity="center"
|
|
tools:backgroundTint="@color/tools_theme">
|
|
|
|
<ImageView
|
|
android:id="@+id/fabIcon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginStart="12dp"
|
|
android:src="@drawable/ic_star_black_24dp"
|
|
tools:tint="@color/textPrimaryDark" />
|
|
|
|
<dev.octoshrimpy.quik.common.widget.QkTextView
|
|
android:id="@+id/fabLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:text="@string/title_qksms_plus"
|
|
android:textColor="@color/textPrimaryDark"
|
|
android:textStyle="bold"
|
|
app:textSize="primary" />
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout> |