书架更新时显示剩余更新数量,在书架布局里配置
This commit is contained in:
@@ -49,13 +49,22 @@
|
||||
app:layout_constraintTop_toBottomOf="@+id/sw_show_unread"
|
||||
tools:ignore="TouchTargetSizeCheck" />
|
||||
|
||||
<io.legado.app.lib.theme.view.ThemeSwitch
|
||||
android:id="@+id/sw_show_wait_up_books"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="6dp"
|
||||
android:text="@string/show_wait_up_count"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sw_show_last_update_time"
|
||||
tools:ignore="TouchTargetSizeCheck" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_layout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintRight_toLeftOf="@+id/ll_sort"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sw_show_last_update_time"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sw_show_wait_up_books"
|
||||
app:layout_constraintLeft_toLeftOf="parent">
|
||||
|
||||
<io.legado.app.ui.widget.text.AccentTextView
|
||||
@@ -110,7 +119,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintLeft_toRightOf="@+id/ll_layout"
|
||||
app:layout_constraintTop_toBottomOf="@id/sw_show_last_update_time"
|
||||
app:layout_constraintTop_toBottomOf="@id/sw_show_wait_up_books"
|
||||
app:layout_constraintRight_toRightOf="parent">
|
||||
|
||||
<io.legado.app.ui.widget.text.AccentTextView
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<io.legado.app.ui.widget.text.BadgeView
|
||||
android:id="@+id/view_badge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
tools:ignore="RtlHardcoded" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -1115,4 +1115,5 @@
|
||||
<string name="is_compress">是否压缩</string>
|
||||
<string name="sort_desc">反序</string>
|
||||
<string name="test">测试</string>
|
||||
<string name="show_wait_up_count">显示等待更新数量</string>
|
||||
</resources>
|
||||
|
||||
@@ -1118,4 +1118,5 @@
|
||||
<string name="is_compress">是否压缩</string>
|
||||
<string name="sort_desc">反序</string>
|
||||
<string name="test">测试</string>
|
||||
<string name="show_wait_up_count">显示等待更新数量</string>
|
||||
</resources>
|
||||
|
||||
@@ -1118,4 +1118,5 @@
|
||||
<string name="is_compress">是否压缩</string>
|
||||
<string name="sort_desc">反序</string>
|
||||
<string name="test">测试</string>
|
||||
<string name="show_wait_up_count">显示等待更新数量</string>
|
||||
</resources>
|
||||
|
||||
@@ -1115,4 +1115,5 @@
|
||||
<string name="is_compress">是否压缩</string>
|
||||
<string name="sort_desc">反序</string>
|
||||
<string name="test">测试</string>
|
||||
<string name="show_wait_up_count">显示等待更新数量</string>
|
||||
</resources>
|
||||
|
||||
@@ -1117,4 +1117,5 @@
|
||||
<string name="is_compress">是否压缩</string>
|
||||
<string name="sort_desc">反序</string>
|
||||
<string name="test">测试</string>
|
||||
<string name="show_wait_up_count">显示等待更新数量</string>
|
||||
</resources>
|
||||
|
||||
@@ -1117,4 +1117,5 @@
|
||||
<string name="is_compress">是否压缩</string>
|
||||
<string name="sort_desc">反序</string>
|
||||
<string name="test">测试</string>
|
||||
<string name="show_wait_up_count">显示等待更新数量</string>
|
||||
</resources>
|
||||
|
||||
@@ -1118,4 +1118,5 @@
|
||||
<string name="is_compress">是否压缩</string>
|
||||
<string name="sort_desc">反序</string>
|
||||
<string name="test">测试</string>
|
||||
<string name="show_wait_up_count">显示等待更新数量</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user