From 4ebe82ca0354966358921a12271a059af18de60c Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 5 Aug 2019 11:20:18 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/search/SearchAdapter.kt | 3 ++- app/src/main/res/layout/item_search.xml | 26 ++++++++++++++----- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt b/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt index d9df3bb43..9b22a190d 100644 --- a/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/search/SearchAdapter.kt @@ -49,7 +49,8 @@ class SearchAdapter : PagedListAdapter(D class MyViewHolder(view: View) : RecyclerView.ViewHolder(view) { fun bind(searchBook: SearchBook, callBack: CallBack?) = with(itemView) { - tv_name.text = String.format("%s(%s)", searchBook.name, searchBook.author) + tv_name.text = searchBook.name + tv_author.text = searchBook.author tv_lasted.text = context.getString(R.string.book_search_last, searchBook.latestChapterTitle) tv_introduce.text = searchBook.intro val kinds = searchBook.getKindList() diff --git a/app/src/main/res/layout/item_search.xml b/app/src/main/res/layout/item_search.xml index a106d8601..40e04dd09 100644 --- a/app/src/main/res/layout/item_search.xml +++ b/app/src/main/res/layout/item_search.xml @@ -39,6 +39,16 @@ app:layout_constraintRight_toRightOf="@id/tv_name" app:layout_constraintTop_toBottomOf="@+id/tv_name"> + + + android:text="@string/app_name" + android:textSize="12sp" /> + android:text="@string/app_name" + android:textSize="12sp" /> + android:text="@string/app_name" + android:textSize="12sp" /> @@ -93,7 +105,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="end" - android:text="简介" + android:text="@string/book_intro" android:textColor="@color/tv_text_default" android:textSize="12sp" />