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" />