parent
4961727237
commit
345df7a7b7
|
@ -30,6 +30,12 @@ class AudioContentCommentAdapter(
|
||||||
) : RecyclerView.ViewHolder(binding.root) {
|
) : RecyclerView.ViewHolder(binding.root) {
|
||||||
|
|
||||||
fun bind(item: GetAudioContentCommentListItem) {
|
fun bind(item: GetAudioContentCommentListItem) {
|
||||||
|
binding.tvSecret.visibility = if (item.isSecret) {
|
||||||
|
View.VISIBLE
|
||||||
|
} else {
|
||||||
|
View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
binding.ivCommentProfile.load(item.profileUrl) {
|
binding.ivCommentProfile.load(item.profileUrl) {
|
||||||
crossfade(true)
|
crossfade(true)
|
||||||
placeholder(R.drawable.bg_placeholder)
|
placeholder(R.drawable.bg_placeholder)
|
||||||
|
|
|
@ -19,6 +19,7 @@ data class GetAudioContentCommentListItem(
|
||||||
@SerializedName("nickname") val nickname: String,
|
@SerializedName("nickname") val nickname: String,
|
||||||
@SerializedName("profileUrl") val profileUrl: String,
|
@SerializedName("profileUrl") val profileUrl: String,
|
||||||
@SerializedName("comment") val comment: String,
|
@SerializedName("comment") val comment: String,
|
||||||
|
@SerializedName("isSecret") val isSecret: Boolean,
|
||||||
@SerializedName("donationCan") val donationCan: Int,
|
@SerializedName("donationCan") val donationCan: Int,
|
||||||
@SerializedName("date") val date: String,
|
@SerializedName("date") val date: String,
|
||||||
@SerializedName("replyCount") val replyCount: Int
|
@SerializedName("replyCount") val replyCount: Int
|
||||||
|
|
|
@ -15,17 +15,35 @@
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_comment_nickname"
|
android:id="@+id/tv_comment_nickname"
|
||||||
android:layout_width="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="6.7dp"
|
android:layout_marginStart="6.7dp"
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:textColor="@color/color_909090"
|
android:textColor="@color/color_909090"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/iv_menu"
|
app:layout_constraintBottom_toBottomOf="@+id/tv_secret"
|
||||||
app:layout_constraintStart_toEndOf="@+id/iv_comment_profile"
|
app:layout_constraintStart_toEndOf="@+id/iv_comment_profile"
|
||||||
app:layout_constraintTop_toTopOf="@+id/iv_comment_profile"
|
app:layout_constraintTop_toTopOf="@+id/tv_secret"
|
||||||
tools:text="alkfje203" />
|
tools:text="alkfje203" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_secret"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:background="@drawable/bg_round_corner_3_3_553bb9f1"
|
||||||
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
|
android:gravity="center"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
|
android:paddingTop="2dp"
|
||||||
|
android:paddingBottom="0dp"
|
||||||
|
android:text="비밀댓글"
|
||||||
|
android:textColor="@color/color_eeeeee"
|
||||||
|
android:textSize="11sp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/tv_comment_nickname"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/iv_comment_profile" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_menu"
|
android:id="@+id/iv_menu"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -44,7 +62,7 @@
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:textColor="@color/color_555555"
|
android:textColor="@color/color_555555"
|
||||||
android:textSize="10.3sp"
|
android:textSize="10.3sp"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/tv_comment_nickname"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="@+id/tv_comment_nickname"
|
app:layout_constraintStart_toStartOf="@+id/tv_comment_nickname"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_comment_nickname"
|
app:layout_constraintTop_toBottomOf="@+id/tv_comment_nickname"
|
||||||
tools:ignore="SmallSp"
|
tools:ignore="SmallSp"
|
||||||
|
@ -55,7 +73,7 @@
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/tv_comment_date"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="@+id/tv_comment_date"
|
app:layout_constraintStart_toStartOf="@+id/tv_comment_date"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_comment_date">
|
app:layout_constraintTop_toBottomOf="@+id/tv_comment_date">
|
||||||
|
|
||||||
|
@ -94,8 +112,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="13.3dp"
|
android:layout_marginTop="13.3dp"
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:textColor="@color/color_eeeeee"
|
|
||||||
android:lineSpacingExtra="8dp"
|
android:lineSpacingExtra="8dp"
|
||||||
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="13.3sp"
|
android:textSize="13.3sp"
|
||||||
tools:text="내용내용내용내용내용내용내용내용내용내용내용내용내용 내용내용내용내용내용내용내용내용내용내용 내용내용내용내용" />
|
tools:text="내용내용내용내용내용내용내용내용내용내용내용내용내용 내용내용내용내용내용내용내용내용내용내용 내용내용내용내용" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue