更新界面
This commit is contained in:
26 files changed
+185
-532
No files matched your search
@@ -49,6 +49,7 @@
|
||||
android:id="@+id/refresh_progress_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:indeterminate="true"
|
||||
app:layout_constraintTop_toBottomOf="@id/lay_top" />
|
||||
|
||||
|
||||
@@ -79,29 +79,13 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
<io.legato.kazusa.ui.widget.EmptyMessageView
|
||||
android:id="@+id/tv_empty_msg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
android:gravity="center"
|
||||
android:visibility="invisible"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="(๑`^´๑)"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
android:text="还没有源!" />
|
||||
</LinearLayout>
|
||||
app:messageText="还没有源!"/>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/recycler_view"
|
||||
|
||||
@@ -28,16 +28,17 @@
|
||||
android:id="@+id/rotate_loading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:layout_margin="32dp"
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_msg"
|
||||
android:layout_width="match_parent"
|
||||
<io.legato.kazusa.ui.widget.EmptyMessageView
|
||||
android:id="@+id/emptyView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:visibility="invisible"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone" />
|
||||
app:messageText="@string/empty"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<io.legato.kazusa.ui.widget.checkbox.SmoothCheckBox
|
||||
<com.google.android.material.checkbox.MaterialCheckBox
|
||||
android:id="@+id/cb_all_export"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
@@ -40,7 +40,7 @@
|
||||
android:layout_marginTop="12dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<io.legato.kazusa.ui.widget.checkbox.SmoothCheckBox
|
||||
<com.google.android.material.checkbox.MaterialCheckBox
|
||||
android:id="@+id/cb_select_export"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
|
||||
@@ -2,7 +2,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">
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/refresh_layout"
|
||||
@@ -17,27 +18,13 @@
|
||||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tv_empty_msg"
|
||||
<io.legato.kazusa.ui.widget.EmptyMessageView
|
||||
android:id="@+id/emptyView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="16dp"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="(๑`^´๑)"
|
||||
android:textSize="32sp" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
android:text="@string/bookshelf_empty" />
|
||||
</LinearLayout>
|
||||
|
||||
app:messageText="@string/bookshelf_empty"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
@@ -55,29 +55,16 @@
|
||||
tools:listitem="@layout/item_find_book"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tv_empty_msg"
|
||||
<io.legato.kazusa.ui.widget.EmptyMessageView
|
||||
android:id="@+id/emptyView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_anchor="@id/app_bar"
|
||||
app:layout_anchor="@id/rv_find"
|
||||
app:layout_anchorGravity="center"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
android:visibility="gone"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="16dp"
|
||||
android:gravity="center">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="(っ˘ω˘ς )"
|
||||
android:textSize="32sp" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="8dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/explore_empty" />
|
||||
</LinearLayout>
|
||||
android:gravity="center"
|
||||
app:messageText="@string/explore_empty"/>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -131,4 +131,9 @@
|
||||
<item>关闭</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="customMode">
|
||||
<item>全局</item>
|
||||
<item>仅强调色</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -613,7 +613,7 @@
|
||||
<string name="dur_pos">当前位置:</string>
|
||||
<string name="precision_search">精准搜索</string>
|
||||
<string name="service_starting">正在启动服务</string>
|
||||
<string name="empty">空</string>
|
||||
<string name="empty">内容为空</string>
|
||||
<string name="file_chooser">文件选择</string>
|
||||
<string name="folder_chooser">文件夹选择</string>
|
||||
<string name="bottom_line">我是有底线的</string>
|
||||
@@ -786,7 +786,7 @@
|
||||
<string name="import_str">导入</string>
|
||||
<string name="export_str">导出</string>
|
||||
<string name="save_theme_config">保存主题配置</string>
|
||||
<string name="save_day_theme_summary">保存白天主题配置以供调用和分享</string>
|
||||
<string name="save_day_theme_summary">保存主题配置以供调用和分享</string>
|
||||
<string name="save_night_theme_summary">保存夜间主题配置以供调用和分享</string>
|
||||
<string name="theme_list">主题列表</string>
|
||||
<string name="theme_list_summary">使用、保存、导入或分享主题</string>
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
<item>9</item>
|
||||
<item>10</item>
|
||||
<item>11</item>
|
||||
<item>12</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="screen_direction_value">
|
||||
@@ -75,4 +76,9 @@
|
||||
<item>off</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="customMode_value">
|
||||
<item>global</item>
|
||||
<item>accent</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -66,6 +66,7 @@
|
||||
<item>千禧年</item>
|
||||
<item>隐海修会</item>
|
||||
<item>乐队</item>
|
||||
<item>自定义</item>
|
||||
<item>透明</item>
|
||||
</string-array>
|
||||
|
||||
@@ -163,6 +164,11 @@
|
||||
<item>Off</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="customMode">
|
||||
<item>Global</item>
|
||||
<item>Accent</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="rule_type">
|
||||
<item>BookSource</item>
|
||||
<item>RssSource</item>
|
||||
|
||||
@@ -254,4 +254,8 @@
|
||||
<attr name="tipText" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="EmptyMessageView">
|
||||
<attr name="messageText" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
Reference in new issue
Block a user