From db62d46f13c7a915f5c7b65e9c3be4071fa51c7e Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Aug 2019 21:43:51 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt | 2 ++ app/src/main/res/layout/item_bookshelf_list.xml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt index b67ad32cf..341de51ff 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfAdapter.kt @@ -11,6 +11,7 @@ import io.legado.app.constant.BookType import io.legado.app.data.entities.Book import io.legado.app.help.ImageLoader import io.legado.app.lib.theme.ThemeStore +import io.legado.app.utils.getCompatColor import kotlinx.android.synthetic.main.item_bookshelf_list.view.* import kotlinx.android.synthetic.main.item_relace_rule.view.tv_name import org.jetbrains.anko.sdk27.listeners.onClick @@ -61,6 +62,7 @@ class BookshelfAdapter : PagedListAdapter(D } fun bind(book: Book, callBack: CallBack?) = with(itemView) { + this.setBackgroundColor(context.getCompatColor(R.color.background)) tv_name.text = book.name tv_author.text = book.author tv_read.text = book.durChapterTitle diff --git a/app/src/main/res/layout/item_bookshelf_list.xml b/app/src/main/res/layout/item_bookshelf_list.xml index 7e397b9c0..72376cda3 100644 --- a/app/src/main/res/layout/item_bookshelf_list.xml +++ b/app/src/main/res/layout/item_bookshelf_list.xml @@ -162,7 +162,6 @@ android:layout_width="match_parent" android:layout_height="0dp" android:background="?android:attr/selectableItemBackground" - android:visibility="gone" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" />