160 lines
6.7 KiB
XML
160 lines
6.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fillViewport="true"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="16dp"
|
|
android:minHeight="0dp"
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/group_edit"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_horizontal"
|
|
android:paddingVertical="16dp">
|
|
|
|
<io.legado.app.ui.widget.image.CoverImageView
|
|
android:id="@+id/iv_cover"
|
|
android:layout_width="90dp"
|
|
android:layout_height="130dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:contentDescription="@string/img_cover"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/image_cover_default"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="ImageContrastCheck" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/til_group_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.Material3.TextInputLayout.FilledBox.Dense"
|
|
android:layout_marginStart="8dp"
|
|
android:hint="@string/group_name"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/iv_cover"
|
|
app:layout_constraintTop_toTopOf="@id/iv_cover">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/tie_group_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/til_sort_menu"
|
|
style="@style/Widget.Material3.TextInputLayout.FilledBox.Dense.ExposedDropdownMenu"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:hint="@string/sort"
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_cover"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/iv_cover">
|
|
|
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
android:id="@+id/actv_sort_menu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:cursorVisible="false"
|
|
android:ellipsize="end"
|
|
android:focusable="false"
|
|
android:inputType="none"
|
|
android:singleLine="true" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/cb_enable_refresh"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/allow_drop_down_refresh"
|
|
android:checked="true"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/iv_cover" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<com.google.android.material.button.MaterialButtonGroup
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_delete"
|
|
style="@style/Widget.Material3Expressive.Button.IconButton.Outlined"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:icon="@drawable/ic_clear_all" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_reset"
|
|
style="@style/Widget.Material3Expressive.Button.IconButton.Outlined"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:icon="@drawable/ic_restore" />
|
|
</com.google.android.material.button.MaterialButtonGroup>
|
|
|
|
<Space
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:layout_weight="1" />
|
|
|
|
<com.google.android.material.button.MaterialButtonGroup
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_cancel"
|
|
style="@style/Widget.Material3Expressive.Button.TonalButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/cancel" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_ok"
|
|
style="@style/Widget.Material3Expressive.Button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/ok" />
|
|
</com.google.android.material.button.MaterialButtonGroup>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|