2020-01-05 03:19:09 +01: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:id="@+id/constraintLayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="32dp"
|
|
|
|
android:background="@drawable/dialog_rounded_background"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintVertical_bias="0.0">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/data_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:text="@string/data_to_include_in_migration"
|
|
|
|
android:textAppearance="@style/TextAppearance.Medium.Body2"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/mig_chapters"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:checked="true"
|
|
|
|
android:text="@string/chapters"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/data_label"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/data_label" />
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/mig_categories"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:checked="true"
|
|
|
|
android:text="@string/categories"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/mig_chapters"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/mig_chapters"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/mig_chapters" />
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/mig_tracking"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:checked="true"
|
|
|
|
android:text="@string/track"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/mig_categories"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/mig_categories"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/mig_categories" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/options_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:text="@string/options"
|
|
|
|
android:textAppearance="@style/TextAppearance.Medium.Body2"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/mig_chapters"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/mig_chapters" />
|
|
|
|
|
|
|
|
<RadioGroup
|
|
|
|
android:id="@+id/sourceGroup"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/options_label"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/options_label">
|
|
|
|
|
|
|
|
<RadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="0dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:text="@string/use_first_source" />
|
|
|
|
|
|
|
|
<RadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/use_most_chapters" />
|
|
|
|
</RadioGroup>
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
2020-01-06 11:28:15 +01:00
|
|
|
android:id="@+id/extra_search_param"
|
2020-01-05 03:19:09 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
2020-01-06 11:28:15 +01:00
|
|
|
android:text="@string/include_extra_search_parameter"
|
2020-01-05 03:19:09 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="@+id/sourceGroup"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/sourceGroup"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/sourceGroup" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/extra_search_param_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:ems="10"
|
|
|
|
android:hint="@string/search_parameter"
|
|
|
|
android:importantForAutofill="no"
|
|
|
|
android:inputType="textPersonName"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/extra_search_param"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/extra_search_param" />
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/skip_step"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
android:text="@string/skip_this_step_next_time"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/extra_search_param"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/extra_search_param"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/extra_search_param_text" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/fab"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
2020-01-06 02:05:49 +01:00
|
|
|
android:src="@drawable/ic_arrow_forward_white_24dp"
|
2020-01-05 03:19:09 +01:00
|
|
|
app:layout_anchor="@id/constraintLayout"
|
|
|
|
app:layout_anchorGravity="bottom|end"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|