You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
294 lines
11 KiB
294 lines
11 KiB
<?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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/bg_book"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:scaleType="centerCrop"
|
|
android:contentDescription="@string/bg_image"
|
|
app:layout_constraintBottom_toTopOf="@+id/view_info"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<View
|
|
android:id="@+id/vw_bg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:background="#50000000"
|
|
app:layout_constraintBottom_toTopOf="@+id/view_info"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<io.legado.app.ui.widget.TitleBar
|
|
android:id="@+id/title_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:title="@string/book_info" />
|
|
|
|
<io.legado.app.ui.widget.image.CoverImageView
|
|
android:id="@+id/iv_cover"
|
|
android:layout_width="110dp"
|
|
android:layout_height="160dp"
|
|
android:layout_margin="10dp"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/image_cover_default"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/title_bar" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_book_info"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp"
|
|
android:minHeight="115dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_cover"
|
|
app:layout_constraintLeft_toRightOf="@+id/iv_cover"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/iv_cover">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="6dp"
|
|
android:singleLine="true"
|
|
android:textColor="@color/md_white_1000"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_author"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="3dp"
|
|
android:singleLine="true"
|
|
android:textColor="@color/md_white_1000"
|
|
android:textSize="16sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_origin"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
android:textColor="@color/md_white_1000"
|
|
tools:ignore="NestedWeights" />
|
|
|
|
<io.legado.app.lib.theme.view.ATEAccentBgTextView
|
|
android:id="@+id/tv_change_source"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:paddingLeft="5dp"
|
|
android:paddingRight="5dp"
|
|
android:text="@string/change_origin"
|
|
android:textSize="16sp"
|
|
app:abt_radius="2dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_kind"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="3dp"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone">
|
|
|
|
<io.legado.app.lib.theme.view.ATEAccentBgTextView
|
|
android:id="@+id/tv_kind"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="6dp"
|
|
android:paddingLeft="3dp"
|
|
android:paddingRight="3dp"
|
|
android:singleLine="true"
|
|
android:text="@string/app_name"
|
|
android:textSize="14sp"
|
|
app:abt_radius="2dp" />
|
|
|
|
<io.legado.app.lib.theme.view.ATEAccentBgTextView
|
|
android:id="@+id/tv_kind_1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="3dp"
|
|
android:paddingRight="3dp"
|
|
android:singleLine="true"
|
|
android:text="@string/app_name"
|
|
android:textSize="14sp"
|
|
app:abt_radius="2dp" />
|
|
|
|
<io.legado.app.lib.theme.view.ATEAccentBgTextView
|
|
android:id="@+id/tv_kind_2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="6dp"
|
|
android:paddingLeft="3dp"
|
|
android:paddingRight="3dp"
|
|
android:singleLine="true"
|
|
android:text="@string/app_name"
|
|
android:textSize="14sp"
|
|
app:abt_radius="2dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_lasted"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
android:singleLine="true"
|
|
android:textSize="16sp"
|
|
android:textColor="@color/md_white_1000"
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_cover"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_name"
|
|
app:layout_constraintRight_toRightOf="@id/tv_name" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/view_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toTopOf="@+id/view_other"
|
|
app:layout_constraintTop_toBottomOf="@+id/iv_cover">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="5dp"
|
|
android:background="@color/bg_divider_line" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:text="@string/book_intro"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/tv_text_default"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_intro"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:maxHeight="160dp"
|
|
android:minHeight="100dp"
|
|
android:scrollbars="vertical"
|
|
android:textIsSelectable="true"
|
|
android:textSize="14sp" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="5dp"
|
|
android:background="@color/bg_divider_line" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/view_other"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp"
|
|
app:layout_constraintBottom_toTopOf="@+id/fl_action"
|
|
app:layout_constraintTop_toBottomOf="@+id/view_info">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_group"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="12dp"
|
|
android:text="@string/group"
|
|
android:textColor="@color/tv_text_default"
|
|
android:textSize="16sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_toc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="12dp"
|
|
android:text="@string/toc_s"
|
|
android:textColor="@color/tv_text_default"
|
|
android:textSize="16sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/fl_action"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="50dp"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_shelf"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
android:includeFontPadding="false"
|
|
android:text="@string/remove_from_bookshelf"
|
|
android:textColor="@color/tv_text_default"
|
|
android:textSize="15sp" />
|
|
|
|
<io.legado.app.lib.theme.view.ATEAccentBgTextView
|
|
android:id="@+id/tv_read"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/selector_btn_accent_bg"
|
|
android:gravity="center"
|
|
android:includeFontPadding="false"
|
|
android:text="@string/reading"
|
|
android:textColor="@color/tv_text_button_nor"
|
|
android:textSize="15sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_loading"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/tv_text_button_nor"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center"
|
|
android:text="@string/data_loading"
|
|
android:textColor="#767676"
|
|
android:textSize="16sp" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1px"
|
|
android:background="@color/bg_divider_line" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |