mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 01:25:07 +01:00
156 lines
6.8 KiB
XML
156 lines
6.8 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:id="@+id/diplay_bottom_sheet"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
android:layout_width="match_parent"
|
||
|
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
|
||
|
android:id="@+id/bottom_sheet"
|
||
|
style="@style/BottomSheetDialogTheme"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:background="@drawable/bg_bottom_sheet_dialog_fragment"
|
||
|
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"
|
||
|
android:orientation="vertical"
|
||
|
android:paddingStart="12dp"
|
||
|
android:paddingEnd="12dp">
|
||
|
|
||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/action_display_list" />
|
||
|
|
||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/action_display_grid" />
|
||
|
|
||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/action_display_comfy_grid" />
|
||
|
</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"
|
||
|
android:text="@string/uniform_grid" />
|
||
|
|
||
|
<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/badges" />
|
||
|
|
||
|
<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"
|
||
|
android:text="@string/action_display_download_badge" />
|
||
|
|
||
|
<RadioGroup
|
||
|
android:id="@+id/unread_badge_group"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
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"
|
||
|
android:text="@string/hide_unread" />
|
||
|
|
||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/show_unread" />
|
||
|
|
||
|
<com.google.android.material.radiobutton.MaterialRadioButton
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/show_unread_count" />
|
||
|
</RadioGroup>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</androidx.core.widget.NestedScrollView>
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/close_button"
|
||
|
android:layout_width="32dp"
|
||
|
android:layout_height="32dp"
|
||
|
android:background="@drawable/round_ripple"
|
||
|
android:layout_gravity="end"
|
||
|
android:layout_marginTop="12dp"
|
||
|
android:layout_marginEnd="12dp"
|
||
|
android:clickable="true"
|
||
|
android:contentDescription="@string/action_close"
|
||
|
android:focusable="true"
|
||
|
android:src="@drawable/ic_close_white_24dp"
|
||
|
android:tint="@color/gray_button" />
|
||
|
</FrameLayout>
|