diff --git a/app/src/main/java/com/gh/gamecenter/forum/search/ForumContentSearchListAdapter.kt b/app/src/main/java/com/gh/gamecenter/forum/search/ForumContentSearchListAdapter.kt index a5b7a6823b..e301a0d805 100644 --- a/app/src/main/java/com/gh/gamecenter/forum/search/ForumContentSearchListAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/forum/search/ForumContentSearchListAdapter.kt @@ -213,15 +213,15 @@ class ForumContentSearchListAdapter(context: Context, val mListViewModel: ForumC timeTv.text = TimeUtils.getFormatTime(answer.time ?: 0, "yyyy-MM-dd") } if (answer.type == "question") { - forumSearchHolder.binding.content.visibility = View.GONE + forumSearchHolder.binding.contentTv.visibility = View.GONE val title = answer.questions.title ?: "" val spannableStringBuilder = SpannableStringBuilder(" ") spannableStringBuilder.setSpan(CenterImageSpan(mContext, R.drawable.ic_ask_label), 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) spannableStringBuilder.append(title.fromHtml()) - forumSearchHolder.binding.title.text = spannableStringBuilder + forumSearchHolder.binding.titleTv.text = spannableStringBuilder } else { - forumSearchHolder.binding.content.visibility = View.VISIBLE - forumSearchHolder.binding.title.text = answer.questions.title?.fromHtml() + forumSearchHolder.binding.contentTv.visibility = View.VISIBLE + forumSearchHolder.binding.titleTv.text = answer.questions.title?.fromHtml() } when { answer.getPassVideos().isNotEmpty() -> { @@ -238,7 +238,7 @@ class ForumContentSearchListAdapter(context: Context, val mListViewModel: ForumC } } - forumSearchHolder.binding.content.text = answer.brief?.fromHtml() + forumSearchHolder.binding.contentTv.text = answer.brief?.fromHtml() forumSearchHolder.itemView.setOnClickListener { val bbsType = if (answer.bbs.type == "official_bbs") "综合论坛" else "游戏论坛" when (answer.type) { diff --git a/app/src/main/res/layout/forum_search_content_list.xml b/app/src/main/res/layout/forum_search_content_list.xml index ff8a7866ae..dda3d86540 100644 --- a/app/src/main/res/layout/forum_search_content_list.xml +++ b/app/src/main/res/layout/forum_search_content_list.xml @@ -25,7 +25,7 @@ android:layout_height="wrap_content">