98 lines
3.6 KiB
XML
98 lines
3.6 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:orientation="horizontal"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<io.legado.app.lib.theme.view.ThemeCheckBox
|
|
android:id="@+id/checkbox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="4dp"
|
|
android:gravity="center_vertical" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:id="@+id/tv_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:text="@string/book_name"
|
|
android:textSize="20sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_author"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:singleLine="true"
|
|
android:text="@string/author"
|
|
android:textSize="12sp"
|
|
tools:ignore="RtlHardcoded" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="4dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_origin"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="12sp"
|
|
tools:text="@string/book_source" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_group_s"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/ungroup"
|
|
android:layout_marginStart="8dp"
|
|
android:singleLine="true"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
|
|
<!-- 按钮横向排列 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="end"
|
|
android:layout_marginTop="4dp">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/tv_group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
android:padding="2dp"
|
|
android:text="@string/group" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/tv_delete"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
app:icon="@drawable/ic_clear_all"
|
|
android:layout_marginStart="8dp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|