From 1af48c398f6b53cf16e1d9d8478f0e5c34611357 Mon Sep 17 00:00:00 2001 From: yangyxd Date: Mon, 9 Mar 2020 11:52:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B9=A6=E7=B1=8D=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E6=8E=92=E7=89=88,=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=A8=AA=E5=B1=8F=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/info/BookInfoActivity.kt | 4 +- .../res/layout-land/activity_book_info.xml | 419 ++++++++++++++++++ .../main/res/layout/activity_book_info.xml | 196 +++++--- app/src/main/res/values/strings.xml | 4 +- 4 files changed, 551 insertions(+), 72 deletions(-) create mode 100644 app/src/main/res/layout-land/activity_book_info.xml diff --git a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt index 769b47b21..42e56f206 100644 --- a/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/info/BookInfoActivity.kt @@ -207,7 +207,7 @@ class BookInfoActivity : ChangeSourceDialog.show(supportFragmentManager, it.name, it.author) } } - tv_toc.onClick { + tv_toc_view.onClick { if (!viewModel.inBookshelf) { viewModel.saveBook { viewModel.saveChapterList { @@ -218,7 +218,7 @@ class BookInfoActivity : openChapterList() } } - tv_group.onClick { + tv_change_group.onClick { viewModel.bookData.value?.let { GroupSelectDialog.show(supportFragmentManager, it.group) } diff --git a/app/src/main/res/layout-land/activity_book_info.xml b/app/src/main/res/layout-land/activity_book_info.xml new file mode 100644 index 000000000..27e0bec0d --- /dev/null +++ b/app/src/main/res/layout-land/activity_book_info.xml @@ -0,0 +1,419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_book_info.xml b/app/src/main/res/layout/activity_book_info.xml index 8e58e34cb..568a4e60a 100644 --- a/app/src/main/res/layout/activity_book_info.xml +++ b/app/src/main/res/layout/activity_book_info.xml @@ -64,40 +64,6 @@ - - - - - - - - + + + + + + + + @@ -241,6 +241,94 @@ + + + + + + + + + + + + + + + + + + + + - - - - - - - + android:layout_height="8dp" + android:background="@color/background"> 添加书籍网址 背景 作者 - 作者:%s + 作者: %s 朗读停止 清除缓存 成功清理缓存 @@ -641,4 +641,6 @@ 加入分组 保存图片 没有默认路径 + 设置分组 + 查看目录