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"
|
2020-02-09 11:35:00 +01:00
|
|
|
android:id="@+id/constraint_layout"
|
|
|
|
tools:background="@android:color/black"
|
2020-01-05 03:19:09 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-02-09 11:35:00 +01:00
|
|
|
style="@style/Theme.MaterialComponents.BottomSheetDialog"
|
2020-01-05 03:19:09 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2020-02-09 11:35:00 +01:00
|
|
|
android:id="@+id/options_layout"
|
2020-01-05 03:19:09 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="32dp"
|
2020-04-19 23:28:59 +02:00
|
|
|
android:background="@drawable/bottom_sheet_rounded_background"
|
2020-01-05 03:19:09 +01:00
|
|
|
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"
|
2020-03-05 08:27:39 +01:00
|
|
|
android:text="@string/tracking"
|
2020-01-05 03:19:09 +01:00
|
|
|
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"
|
2020-02-09 11:35:00 +01:00
|
|
|
android:layout_marginTop="0dp"
|
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"
|
2020-04-09 06:25:38 +02:00
|
|
|
android:hint="@string/search_parameter_eg"
|
2020-01-05 03:19:09 +01:00
|
|
|
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"
|
2020-02-09 11:35:00 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/extra_search_param_text"/>
|
2020-01-05 03:19:09 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
2020-02-09 11:35:00 +01:00
|
|
|
<View
|
|
|
|
android:id="@+id/fab_guider"
|
|
|
|
android:layout_width="2dp"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/options_layout"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
android:layout_height="30dp" />
|
|
|
|
|
2020-01-05 03:19:09 +01:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/fab"
|
2020-02-01 10:29:26 +01:00
|
|
|
style="@style/Theme.Widget.FAB"
|
2020-01-05 03:19:09 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-09 11:35:00 +01:00
|
|
|
android:layout_marginEnd="10dp"
|
2020-05-21 09:03:55 +02:00
|
|
|
android:src="@drawable/ic_arrow_forward_24dp"
|
2020-02-09 11:35:00 +01:00
|
|
|
app:layout_anchor="@id/constraint_layout"
|
2020-01-05 03:19:09 +01:00
|
|
|
app:layout_anchorGravity="bottom|end"
|
2020-02-09 11:35:00 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/fab_guider"
|
2020-01-05 03:19:09 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|