mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-15 17:45:06 +01:00
162 lines
7.0 KiB
XML
162 lines
7.0 KiB
XML
<?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/constraint_layout"
|
|
tools:background="@android:color/black"
|
|
android:layout_width="match_parent"
|
|
style="@style/Theme.MaterialComponents.BottomSheetDialog"
|
|
android:layout_height="match_parent"
|
|
android:background="@android:color/transparent"
|
|
android:orientation="vertical">
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/options_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="32dp"
|
|
android:background="@drawable/bottom_sheet_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/tracking"
|
|
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
|
|
android:id="@+id/extra_search_param"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/include_extra_search_parameter"
|
|
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_eg"
|
|
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>
|
|
|
|
<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" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
android:id="@+id/fab"
|
|
style="@style/Theme.Widget.FAB"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="10dp"
|
|
android:src="@drawable/ic_arrow_forward_24dp"
|
|
app:layout_anchor="@id/constraint_layout"
|
|
app:layout_anchorGravity="bottom|end"
|
|
app:layout_constraintBottom_toBottomOf="@id/fab_guider"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |