diff --git a/app/src/main/java/com/xiaoyv/bangumi/ui/media/detail/overview/binder/OverviewCharacterBinder.kt b/app/src/main/java/com/xiaoyv/bangumi/ui/media/detail/overview/binder/OverviewCharacterBinder.kt index 9faaecc5..777e1639 100644 --- a/app/src/main/java/com/xiaoyv/bangumi/ui/media/detail/overview/binder/OverviewCharacterBinder.kt +++ b/app/src/main/java/com/xiaoyv/bangumi/ui/media/detail/overview/binder/OverviewCharacterBinder.kt @@ -58,7 +58,7 @@ class OverviewCharacterBinder(private val clickItemListener: (MediaDetailEntity. binding.ivAvatar.loadImageAnimate(item.avatar, cropType = ImageView.ScaleType.FIT_START) binding.tvName.text = item.characterNameCn.ifBlank { item.characterName } binding.tvJobs.text = item.jobs.joinToString(";") - binding.tvCommentCount.text = String.format("讨论:%d", item.saveCount) + binding.tvCommentCount.text = String.format("+%d", item.saveCount) binding.tvCommentCount.isVisible = item.saveCount != 0 binding.tvPerson.isVisible = item.persons.isNotEmpty() binding.tvPerson.text = buildString { diff --git a/app/src/main/res/layout/fragment_overview_character_item.xml b/app/src/main/res/layout/fragment_overview_character_item.xml index 74327939..ad02265a 100644 --- a/app/src/main/res/layout/fragment_overview_character_item.xml +++ b/app/src/main/res/layout/fragment_overview_character_item.xml @@ -38,17 +38,17 @@ android:id="@+id/tv_name" android:layout_width="@dimen/ui_size_0" android:layout_height="wrap_content" - android:layout_marginEnd="@dimen/ui_size_12" android:ellipsize="end" - android:maxLines="1" + android:lineSpacingMultiplier="1.25" + android:maxLines="2" android:paddingVertical="@dimen/ui_size_6" android:textAppearance="?attr/textAppearanceBodyMedium" android:textColor="?attr/colorOnSurface" android:textStyle="bold" - app:layout_constraintEnd_toStartOf="@+id/tv_comment_count" + app:layout_constraintEnd_toEndOf="@id/iv_avatar" app:layout_constraintStart_toStartOf="@+id/iv_avatar" app:layout_constraintTop_toBottomOf="@+id/iv_avatar" - tools:text="@tools:sample/full_names" /> + tools:text="@tools:sample/lorem/random" />