|
|
|
@ -65,6 +65,7 @@ class BookInfoActivity : |
|
|
|
|
scroll_view.setBackgroundColor(backgroundColor) |
|
|
|
|
fl_action.setBackgroundColor(bottomBackground) |
|
|
|
|
tv_shelf.setTextColor(getPrimaryTextColor(ColorUtils.isColorLight(bottomBackground))) |
|
|
|
|
tv_toc.text = getString(R.string.toc_s, getString(R.string.loading)) |
|
|
|
|
viewModel.bookData.observe(this, { showBook(it) }) |
|
|
|
|
viewModel.chapterListData.observe(this, { upLoading(false, it) }) |
|
|
|
|
viewModel.initData(intent) |
|
|
|
@ -136,7 +137,6 @@ class BookInfoActivity : |
|
|
|
|
tv_author.text = getString(R.string.author_show, book.getRealAuthor()) |
|
|
|
|
tv_origin.text = getString(R.string.origin_show, book.originName) |
|
|
|
|
tv_lasted.text = getString(R.string.lasted_show, book.latestChapterTitle) |
|
|
|
|
tv_toc.text = getString(R.string.toc_s, getString(R.string.loading)) |
|
|
|
|
tv_intro.text = book.getDisplayIntro() |
|
|
|
|
upTvBookshelf() |
|
|
|
|
val kinds = book.getKindList() |
|
|
|
|