feat(home): 인기 크리에이터 섹션 아이템 팔로우 버튼 표시 조건 추가
- 크리에이터 != 나 인 경우에만 팔로우/팔로잉 버튼 표시
This commit is contained in:
@@ -60,6 +60,8 @@ class CreatorRankingAdapter(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SharedPreferenceManager.userId != item.id) {
|
||||||
|
binding.tvFollow.visibility = View.VISIBLE
|
||||||
if (item.follow) {
|
if (item.follow) {
|
||||||
binding.tvFollow.text = "팔로잉"
|
binding.tvFollow.text = "팔로잉"
|
||||||
binding.tvFollow.setBackgroundResource(R.drawable.bg_round_corner_999_455a64)
|
binding.tvFollow.setBackgroundResource(R.drawable.bg_round_corner_999_455a64)
|
||||||
@@ -78,6 +80,9 @@ class CreatorRankingAdapter(
|
|||||||
}
|
}
|
||||||
onClickFollow(item.id, item.follow)
|
onClickFollow(item.id, item.follow)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
binding.tvFollow.visibility = View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
binding.root.setOnClickListener { onClickItem(item.id) }
|
binding.root.setOnClickListener { onClickItem(item.id) }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,6 +133,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_round_corner_4_263238_3bb9f1"
|
android:background="@drawable/bg_round_corner_4_263238_3bb9f1"
|
||||||
|
android:fontFamily="@font/pretendard_medium"
|
||||||
android:paddingHorizontal="7dp"
|
android:paddingHorizontal="7dp"
|
||||||
android:paddingVertical="4dp"
|
android:paddingVertical="4dp"
|
||||||
android:text="최신 콘텐츠"
|
android:text="최신 콘텐츠"
|
||||||
|
|||||||
Reference in New Issue
Block a user