From b892c58c52b8b1266d3cbbba6a89a9e5839b4a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=8E=89=E4=B9=85?= <1484288157@qq.com> Date: Thu, 4 Feb 2021 09:36:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=85=89=E7=8E=AF=E5=8A=A9=E6=89=8BV?= =?UTF-8?q?=5F4.7.0=E3=80=91=E8=AE=BA=E5=9D=9B=E4=BA=A4=E4=BA=92=E4=BC=98?= =?UTF-8?q?=E5=8C=96(0203PM=E8=A1=A5=E5=85=85)=20https://git.ghzs.com/pm/h?= =?UTF-8?q?alo-app-issues/-/issues/1135?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qa/answer/detail/AnswerDetailFragment.kt | 12 ++++++------ .../res/layout/piece_article_input_container.xml | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/gh/gamecenter/qa/answer/detail/AnswerDetailFragment.kt b/app/src/main/java/com/gh/gamecenter/qa/answer/detail/AnswerDetailFragment.kt index 2de84b5e25..c206e5ea71 100644 --- a/app/src/main/java/com/gh/gamecenter/qa/answer/detail/AnswerDetailFragment.kt +++ b/app/src/main/java/com/gh/gamecenter/qa/answer/detail/AnswerDetailFragment.kt @@ -493,8 +493,8 @@ class AnswerDetailFragment : NormalFragment() { private fun toggleComment(enable: Boolean, commentCount: Int) { if (enable) { - mBinding.bottomController.bottomCommentIv.setImageResource(R.drawable.community_content_detail_comment_open) - mBinding.bottomController.bottomCommentTv.setTextColor(ContextCompat.getColor(requireContext(), R.color.text_242529)) + mBinding.bottomController.bottomCommentIv.setImageResource(R.drawable.ic_article_detail_comment_bottom_bar) + mBinding.bottomController.bottomCommentTv.setTextColor(ContextCompat.getColor(requireContext(), R.color.text_666666)) mBinding.bottomController.bottomCommentTv.text = if (commentCount > 0) commentCount.toString() else "评论" } else { mBinding.bottomController.bottomCommentIv.setImageResource(R.drawable.community_content_detail_comment_close) @@ -918,7 +918,7 @@ class AnswerDetailFragment : NormalFragment() { } else { mBinding.bottomController.bottomStarIv.setImageResource(R.drawable.ic_article_detail_star_bottom_bar) mBinding.bottomController.bottomStarTv.text = "收藏" - mBinding.bottomController.bottomStarTv.setTextColor(ContextCompat.getColor(requireContext(), R.color.text_242529)) + mBinding.bottomController.bottomStarTv.setTextColor(ContextCompat.getColor(requireContext(), R.color.text_666666)) } } @@ -1125,13 +1125,13 @@ class AnswerDetailFragment : NormalFragment() { private fun updateLikeView(alreadyVoted: Boolean, voteCount: Int) { // mBinding.bottomController.bottomLikeTv.text = "赞同 ${NumberUtils.transSimpleCount(voteCount)}" if (alreadyVoted) { - mBinding.bottomController.bottomLikeIv.setImageResource(R.drawable.community_content_detail_vote_select) + mBinding.bottomController.bottomLikeIv.setImageResource(R.drawable.ic_article_detail_liked_bottom_bar) mBinding.bottomController.bottomLikeTv.text = NumberUtils.transSimpleCount(voteCount) mBinding.bottomController.bottomLikeTv.setTextColor(ContextCompat.getColor(requireContext(), R.color.theme_font)) } else { - mBinding.bottomController.bottomLikeIv.setImageResource(R.drawable.community_content_detail_vote_unselect) + mBinding.bottomController.bottomLikeIv.setImageResource(R.drawable.ic_article_detail_like_bottom_bar) mBinding.bottomController.bottomLikeTv.text = "赞同" - mBinding.bottomController.bottomLikeTv.setTextColor(ContextCompat.getColor(requireContext(), R.color.text_242529)) + mBinding.bottomController.bottomLikeTv.setTextColor(ContextCompat.getColor(requireContext(), R.color.text_666666)) } } diff --git a/app/src/main/res/layout/piece_article_input_container.xml b/app/src/main/res/layout/piece_article_input_container.xml index 3a7f301526..c4f738cdc6 100644 --- a/app/src/main/res/layout/piece_article_input_container.xml +++ b/app/src/main/res/layout/piece_article_input_container.xml @@ -7,6 +7,7 @@ android:layout_height="56dp" android:layout_alignParentBottom="true" android:background="@color/white" + android:clickable="true" tools:showIn="@layout/fragment_article_detail">