2020-02-29 10:22:54 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-04-14 21:37:49 +02:00
|
|
|
android:id="@+id/display_bottom_sheet"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-04-23 09:23:36 +02:00
|
|
|
android:background="@drawable/bottom_sheet_rounded_background"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:id="@+id/settings_scroll_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<LinearLayout
|
2020-04-15 05:56:50 +02:00
|
|
|
android:id="@+id/display_layout"
|
2020-02-29 10:22:54 +01:00
|
|
|
style="@style/BottomSheetDialogTheme"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-23 09:23:36 +02:00
|
|
|
android:background="@android:color/transparent"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="12dp"
|
|
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
style="@style/TextAppearance.MaterialComponents.Headline6"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:text="@string/display_as" />
|
|
|
|
|
|
|
|
<RadioGroup
|
|
|
|
android:id="@+id/display_group"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:orientation="horizontal"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingEnd="12dp">
|
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
2020-04-04 19:47:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:text="@string/list" />
|
2020-02-29 10:22:54 +01:00
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
2020-04-04 19:47:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:layout_marginStart="12dp"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:text="@string/compact_grid" />
|
2020-02-29 10:22:54 +01:00
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
2020-04-04 19:47:32 +02:00
|
|
|
android:layout_width="wrap_content"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:layout_marginStart="12dp"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:text="@string/comfortable_grid" />
|
2020-02-29 10:22:54 +01:00
|
|
|
</RadioGroup>
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
style="@style/TextAppearance.MaterialComponents.Headline6"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:text="@string/grid_options" />
|
|
|
|
|
|
|
|
<RadioGroup
|
|
|
|
android:id="@+id/grid_size_toggle_group"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/small" />
|
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:text="@string/medium" />
|
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:text="@string/large" />
|
|
|
|
</RadioGroup>
|
|
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/uniform_grid"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:text="@string/uniform_covers" />
|
2020-02-29 10:22:54 +01:00
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
style="@style/TextAppearance.MaterialComponents.Headline6"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="12dp"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:text="@string/unread_badges" />
|
2020-02-29 10:22:54 +01:00
|
|
|
|
|
|
|
<RadioGroup
|
|
|
|
android:id="@+id/unread_badge_group"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:orientation="horizontal"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingEnd="12dp">
|
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="2"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:text="@string/hide_badges" />
|
2020-02-29 10:22:54 +01:00
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:text="@string/show_badges" />
|
2020-02-29 10:22:54 +01:00
|
|
|
|
|
|
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:text="@string/show_count" />
|
2020-02-29 10:22:54 +01:00
|
|
|
</RadioGroup>
|
|
|
|
|
2020-04-20 00:22:12 +02:00
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/hide_reading"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:text="@string/hide_start_reading_button" />
|
|
|
|
|
2020-04-04 19:47:32 +02:00
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
style="@style/TextAppearance.MaterialComponents.Headline6"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:text="@string/more" />
|
|
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/download_badge"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:text="@string/download_badge" />
|
2020-04-04 19:47:32 +02:00
|
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/autohide_seeker"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2020-04-06 09:10:53 +02:00
|
|
|
android:text="@string/always_show_library_fast_scroll"/>
|
2020-04-04 19:47:32 +02:00
|
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/hide_filters"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:text="@string/start_with_filters_hidden" />
|
2020-02-29 10:22:54 +01:00
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/close_button"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
2020-04-04 19:47:32 +02:00
|
|
|
android:background="@drawable/round_ripple"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:clickable="true"
|
2020-04-09 02:32:36 +02:00
|
|
|
android:contentDescription="@string/close"
|
2020-02-29 10:22:54 +01:00
|
|
|
android:focusable="true"
|
|
|
|
android:src="@drawable/ic_close_white_24dp"
|
|
|
|
android:tint="@color/gray_button" />
|
|
|
|
</FrameLayout>
|