|
|
@ -9,227 +9,335 @@ |
|
|
|
<ImageView |
|
|
|
<ImageView |
|
|
|
android:id="@+id/bg_book" |
|
|
|
android:id="@+id/bg_book" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:scaleType="centerCrop" |
|
|
|
android:scaleType="centerCrop" |
|
|
|
android:contentDescription="@string/bg_image" |
|
|
|
android:contentDescription="@string/bg_image" |
|
|
|
app:layout_constraintBottom_toTopOf="@+id/view_info" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
<LinearLayout |
|
|
|
android:id="@+id/vw_bg" |
|
|
|
android:id="@+id/vw_bg" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:background="#50000000" |
|
|
|
android:background="#50000000" |
|
|
|
app:layout_constraintBottom_toTopOf="@+id/view_info" |
|
|
|
android:orientation="vertical"> |
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar |
|
|
|
<androidx.appcompat.widget.Toolbar |
|
|
|
android:id="@+id/toolbar" |
|
|
|
android:id="@+id/toolbar" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:theme="?attr/actionBarStyle" |
|
|
|
android:theme="?attr/actionBarStyle" |
|
|
|
android:fitsSystemWindows="true" |
|
|
|
android:fitsSystemWindows="true" |
|
|
|
app:popupTheme="@style/AppTheme.PopupOverlay" |
|
|
|
app:popupTheme="@style/AppTheme.PopupOverlay" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
app:title="@string/book_info" /> |
|
|
|
app:title="@string/book_info" /> |
|
|
|
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.image.CoverImageView |
|
|
|
<RelativeLayout |
|
|
|
android:id="@+id/iv_cover" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="110dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="160dp" |
|
|
|
android:layout_marginTop="8dp"> |
|
|
|
android:layout_margin="10dp" |
|
|
|
|
|
|
|
android:scaleType="centerCrop" |
|
|
|
<io.legado.app.ui.widget.ArcView |
|
|
|
android:src="@drawable/image_cover_default" |
|
|
|
app:arcHeight="36dp" |
|
|
|
app:layout_constraintLeft_toLeftOf="parent" |
|
|
|
app:bgColor="@color/background" |
|
|
|
app:layout_constraintTop_toBottomOf="@+id/toolbar" /> |
|
|
|
app:arcDirectionTop="true" |
|
|
|
|
|
|
|
android:layout_marginTop="90dp" |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="78dp" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView |
|
|
|
|
|
|
|
app:cardCornerRadius="5dp" |
|
|
|
|
|
|
|
app:cardElevation="8dp" |
|
|
|
|
|
|
|
android:layout_margin="3dp" |
|
|
|
|
|
|
|
android:layout_centerHorizontal="true" |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.image.CoverImageView |
|
|
|
|
|
|
|
android:id="@+id/iv_cover" |
|
|
|
|
|
|
|
android:layout_width="110dp" |
|
|
|
|
|
|
|
android:layout_height="160dp" |
|
|
|
|
|
|
|
android:contentDescription="@string/img_cover" |
|
|
|
|
|
|
|
android:scaleType="centerCrop" |
|
|
|
|
|
|
|
android:src="@drawable/image_cover_default" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</RelativeLayout> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
<LinearLayout |
|
|
|
android:id="@+id/ll_book_info" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginLeft="12dp" |
|
|
|
android:background="@color/background" |
|
|
|
android:layout_marginRight="12dp" |
|
|
|
|
|
|
|
android:minHeight="115dp" |
|
|
|
|
|
|
|
android:orientation="vertical" |
|
|
|
android:orientation="vertical" |
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_cover" |
|
|
|
android:paddingLeft="10dp" |
|
|
|
app:layout_constraintLeft_toRightOf="@+id/iv_cover" |
|
|
|
android:paddingTop="8dp" |
|
|
|
app:layout_constraintRight_toRightOf="parent" |
|
|
|
android:paddingRight="10dp" |
|
|
|
app:layout_constraintTop_toTopOf="@+id/iv_cover"> |
|
|
|
android:paddingBottom="3dp"> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<TextView |
|
|
|
android:id="@+id/tv_name" |
|
|
|
android:id="@+id/tv_name" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginBottom="6dp" |
|
|
|
android:layout_marginBottom="6dp" |
|
|
|
|
|
|
|
android:gravity="center" |
|
|
|
|
|
|
|
android:includeFontPadding="false" |
|
|
|
android:singleLine="true" |
|
|
|
android:singleLine="true" |
|
|
|
android:textColor="@color/md_white_1000" |
|
|
|
android:text="@string/book_name" |
|
|
|
android:textSize="18sp" /> |
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
|
|
|
android:textSize="18sp" |
|
|
|
|
|
|
|
tools:ignore="RtlHardcoded" /> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<io.legado.app.ui.widget.LabelsBar |
|
|
|
android:id="@+id/tv_author" |
|
|
|
android:id="@+id/lb_kind" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_marginBottom="3dp" |
|
|
|
android:layout_marginBottom="3dp" |
|
|
|
android:singleLine="true" |
|
|
|
android:layout_gravity="center" |
|
|
|
android:textColor="@color/md_white_1000" |
|
|
|
android:gravity="center" |
|
|
|
android:textSize="16sp" /> |
|
|
|
android:visibility="gone" /> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollView |
|
|
|
|
|
|
|
android:background="@color/background" |
|
|
|
|
|
|
|
android:layout_weight="1.0" |
|
|
|
|
|
|
|
android:padding="0dp" |
|
|
|
|
|
|
|
android:layout_height="0dp" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:scrollbarStyle="outsideInset" |
|
|
|
android:layout_marginBottom="4dp" |
|
|
|
android:scrollbars="vertical" |
|
|
|
android:orientation="horizontal"> |
|
|
|
android:fillViewport="true" |
|
|
|
|
|
|
|
android:fitsSystemWindows="false" |
|
|
|
|
|
|
|
android:focusable="true" > |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<LinearLayout |
|
|
|
android:id="@+id/tv_origin" |
|
|
|
android:orientation="vertical" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:paddingLeft="8dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:paddingRight="8dp" |
|
|
|
android:layout_weight="1" |
|
|
|
android:paddingBottom="8dp" |
|
|
|
android:singleLine="true" |
|
|
|
android:background="@color/background" |
|
|
|
android:textSize="16sp" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:textColor="@color/md_white_1000" |
|
|
|
android:layout_height="wrap_content"> |
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.text.AccentBgTextView |
|
|
|
<LinearLayout |
|
|
|
android:id="@+id/tv_change_source" |
|
|
|
android:orientation="vertical" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:paddingLeft="8dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:paddingRight="8dp" |
|
|
|
android:layout_marginStart="8dp" |
|
|
|
android:paddingBottom="8dp" |
|
|
|
android:paddingLeft="5dp" |
|
|
|
android:background="@color/background" |
|
|
|
android:paddingRight="5dp" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:text="@string/change_origin" |
|
|
|
android:layout_height="wrap_content"> |
|
|
|
android:textSize="16sp" |
|
|
|
|
|
|
|
app:radius="2dp" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.LabelsBar |
|
|
|
<LinearLayout |
|
|
|
android:id="@+id/lb_kind" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:gravity="center_vertical" |
|
|
|
android:layout_marginBottom="3dp" |
|
|
|
android:orientation="horizontal" |
|
|
|
android:visibility="gone" /> |
|
|
|
android:paddingTop="3dp" |
|
|
|
|
|
|
|
android:paddingBottom="3dp"> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<ImageView |
|
|
|
android:id="@+id/tv_lasted" |
|
|
|
android:layout_width="18sp" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="18sp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:contentDescription="@string/origin_format" |
|
|
|
android:layout_marginBottom="4dp" |
|
|
|
android:paddingRight="2dp" |
|
|
|
android:singleLine="true" |
|
|
|
android:src="@drawable/ic_author" |
|
|
|
android:textSize="16sp" |
|
|
|
app:tint="@color/tv_text_summary" |
|
|
|
android:textColor="@color/md_white_1000" |
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_cover" |
|
|
|
|
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_name" |
|
|
|
|
|
|
|
app:layout_constraintRight_toRightOf="@id/tv_name" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
<TextView |
|
|
|
|
|
|
|
android:id="@+id/tv_author" |
|
|
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_weight="1" |
|
|
|
|
|
|
|
android:ellipsize="end" |
|
|
|
|
|
|
|
android:includeFontPadding="false" |
|
|
|
|
|
|
|
android:paddingRight="6dp" |
|
|
|
|
|
|
|
android:singleLine="true" |
|
|
|
|
|
|
|
android:text="@string/author" |
|
|
|
|
|
|
|
android:textColor="@color/tv_text_summary" |
|
|
|
|
|
|
|
android:textSize="13sp" |
|
|
|
|
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
|
|
<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 |
|
|
|
<LinearLayout |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="5dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:background="@color/bg_divider_line" /> |
|
|
|
android:gravity="center_vertical" |
|
|
|
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
|
|
|
android:paddingTop="3dp" |
|
|
|
|
|
|
|
android:paddingBottom="3dp"> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<ImageView |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:id="@+id/iv_web" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_width="18sp" |
|
|
|
android:padding="8dp" |
|
|
|
android:layout_height="18sp" |
|
|
|
android:text="@string/book_intro" |
|
|
|
android:contentDescription="@string/origin_format" |
|
|
|
android:textStyle="bold" |
|
|
|
android:paddingRight="2dp" |
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
android:src="@drawable/ic_web_outline" |
|
|
|
android:textSize="16sp" /> |
|
|
|
app:tint="@color/tv_text_summary" |
|
|
|
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<TextView |
|
|
|
android:id="@+id/tv_intro" |
|
|
|
android:id="@+id/tv_origin" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="0dp" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
android:ellipsize="end" |
|
|
|
android:layout_marginRight="8dp" |
|
|
|
android:includeFontPadding="false" |
|
|
|
android:minHeight="100dp" |
|
|
|
android:paddingRight="6dp" |
|
|
|
android:textSize="14sp" /> |
|
|
|
android:singleLine="true" |
|
|
|
|
|
|
|
android:text="@string/origin_format" |
|
|
|
|
|
|
|
android:textColor="@color/tv_text_summary" |
|
|
|
|
|
|
|
android:textSize="13sp" |
|
|
|
|
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
<io.legado.app.ui.widget.text.AccentBgTextView |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:id="@+id/tv_change_source" |
|
|
|
android:layout_height="5dp" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:background="@color/bg_divider_line" /> |
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_marginStart="8dp" |
|
|
|
|
|
|
|
android:paddingLeft="5dp" |
|
|
|
|
|
|
|
android:paddingRight="5dp" |
|
|
|
|
|
|
|
android:text="@string/change_origin" |
|
|
|
|
|
|
|
android:textSize="16sp" |
|
|
|
|
|
|
|
app:radius="2dp" /> |
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
<LinearLayout |
|
|
|
android:id="@+id/view_other" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:gravity="center_vertical" |
|
|
|
android:orientation="vertical" |
|
|
|
android:orientation="horizontal" |
|
|
|
android:paddingTop="12dp" |
|
|
|
android:paddingTop="3dp" |
|
|
|
android:paddingBottom="12dp" |
|
|
|
android:paddingBottom="3dp"> |
|
|
|
app:layout_constraintBottom_toTopOf="@+id/fl_action" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/view_info"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<ImageView |
|
|
|
android:id="@+id/tv_group" |
|
|
|
android:id="@+id/ic_book_last" |
|
|
|
|
|
|
|
android:layout_width="18sp" |
|
|
|
|
|
|
|
android:layout_height="18sp" |
|
|
|
|
|
|
|
android:contentDescription="@string/read_dur_progress" |
|
|
|
|
|
|
|
android:paddingRight="2dp" |
|
|
|
|
|
|
|
android:src="@drawable/ic_book_last" |
|
|
|
|
|
|
|
app:tint="@color/tv_text_summary" |
|
|
|
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
|
|
|
android:id="@+id/tv_lasted" |
|
|
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:layout_weight="1" |
|
|
|
|
|
|
|
android:ellipsize="end" |
|
|
|
|
|
|
|
android:includeFontPadding="false" |
|
|
|
|
|
|
|
android:paddingRight="6dp" |
|
|
|
|
|
|
|
android:singleLine="true" |
|
|
|
|
|
|
|
android:text="@string/read_dur_progress" |
|
|
|
|
|
|
|
android:textColor="@color/tv_text_summary" |
|
|
|
|
|
|
|
android:textSize="13sp" |
|
|
|
|
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.text.ScrollTextView |
|
|
|
|
|
|
|
android:id="@+id/tv_intro" |
|
|
|
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:clickable="true" |
|
|
|
|
|
|
|
android:focusable="true" |
|
|
|
|
|
|
|
android:text="@string/book_intro" |
|
|
|
|
|
|
|
android:textColor="@color/tv_text_secondary" |
|
|
|
|
|
|
|
android:textSize="14sp" |
|
|
|
|
|
|
|
android:paddingLeft="8dp" |
|
|
|
|
|
|
|
android:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ScrollView> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
|
|
android:id="@+id/view_other" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:padding="12dp" |
|
|
|
android:background="@color/background" |
|
|
|
android:singleLine="true" |
|
|
|
android:orientation="vertical" |
|
|
|
android:text="@string/group_s" |
|
|
|
android:paddingTop="12dp" |
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
android:paddingBottom="12dp" |
|
|
|
android:textSize="16sp" /> |
|
|
|
app:layout_constraintBottom_toTopOf="@+id/fl_action" |
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/view_info"> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<TextView |
|
|
|
android:id="@+id/tv_toc" |
|
|
|
android:id="@+id/tv_group" |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:padding="12dp" |
|
|
|
|
|
|
|
android:singleLine="true" |
|
|
|
|
|
|
|
android:clickable="true" |
|
|
|
|
|
|
|
android:text="@string/group_s" |
|
|
|
|
|
|
|
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:background="?attr/selectableItemBackground" |
|
|
|
|
|
|
|
android:singleLine="true" |
|
|
|
|
|
|
|
android:clickable="true" |
|
|
|
|
|
|
|
android:text="@string/toc_s" |
|
|
|
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
|
|
|
android:textSize="16sp" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="1px" |
|
|
|
android:padding="12dp" |
|
|
|
android:background="@color/bg_divider_line" /> |
|
|
|
android:singleLine="true" |
|
|
|
|
|
|
|
android:text="@string/toc_s" |
|
|
|
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
|
|
|
android:textSize="16sp" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
<LinearLayout |
|
|
|
|
|
|
|
android:id="@+id/fl_action" |
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
|
|
android:layout_height="50dp" |
|
|
|
|
|
|
|
android:background="@color/background_menu" |
|
|
|
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
<TextView |
|
|
|
android:id="@+id/fl_action" |
|
|
|
android:id="@+id/tv_shelf" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="50dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:background="@color/background_menu" |
|
|
|
android:layout_weight="1" |
|
|
|
android:orientation="horizontal" |
|
|
|
android:background="?attr/selectableItemBackground" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent"> |
|
|
|
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" /> |
|
|
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
<io.legado.app.ui.widget.text.AccentBgTextView |
|
|
|
android:id="@+id/tv_shelf" |
|
|
|
android:id="@+id/tv_read" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_width="0dp" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_height="match_parent" |
|
|
|
android:layout_weight="1" |
|
|
|
android:layout_weight="1" |
|
|
|
android:background="?attr/selectableItemBackground" |
|
|
|
android:background="@drawable/selector_btn_accent_bg" |
|
|
|
android:clickable="true" |
|
|
|
android:gravity="center" |
|
|
|
android:focusable="true" |
|
|
|
android:includeFontPadding="false" |
|
|
|
android:gravity="center" |
|
|
|
android:text="@string/reading" |
|
|
|
android:includeFontPadding="false" |
|
|
|
android:textColor="@color/tv_text_button_nor" |
|
|
|
android:text="@string/remove_from_bookshelf" |
|
|
|
android:textSize="15sp" /> |
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
|
|
|
android:textSize="15sp" /> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.text.AccentBgTextView |
|
|
|
|
|
|
|
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> |
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |