修改玩家评论UI

This commit is contained in:
张玉久
2020-05-28 18:06:33 +08:00
parent 259d343e31
commit d52cfd475f
4 changed files with 16 additions and 13 deletions

View File

@ -242,8 +242,8 @@ class RatingCommentItemViewHolder(val binding: RatingCommentItemBinding) : BaseR
private fun getSpan(context: Context, name: String, commentData: RatingComment): SpannableStringBuilder {
val spanned = SpanBuilder(name)
.color(context, 0, commentData.replyData?.user?.name!!.length, R.color.text_666666)
.size(0, commentData.replyData?.user?.name!!.length, 12)
.color(context, 0, commentData.replyData?.user?.name!!.length, R.color.text_333333)
.size(0, commentData.replyData?.user?.name!!.length, 13)
.build()
val contentSpan = TextHelper.getHighlightedSpannableStringThatIsWrappedInsideWrapper(context, spanned)

View File

@ -61,6 +61,7 @@ open class NewCommentFragment : ListFragment<CommentEntity, NewCommentViewModel>
@BindView(R.id.scrollView)
lateinit var mScrollView: ScrollView
@Nullable
@BindView(R.id.shadowView)
lateinit var mShadowView: View