feat(content): 추천 섹션 chevron 표시를 적용한다
This commit is contained in:
@@ -507,18 +507,36 @@ class ContentMainFragment : BaseFragment<FragmentV2MainContentBinding>(
|
||||
}
|
||||
|
||||
private fun setUpSectionTitles() {
|
||||
binding.viewContentOriginalSeriesTitle.setTitle(R.string.content_recommendation_section_original_series)
|
||||
binding.viewContentLatestAudioTitle.setTitle(R.string.content_recommendation_section_latest_audio)
|
||||
binding.viewContentNewAndHotTitle.setTitle(R.string.content_recommendation_section_new_and_hot)
|
||||
binding.viewContentFreeAudioTitle.setTitle(R.string.content_recommendation_section_free_audio)
|
||||
binding.viewContentPointAudioTitle.setTitle(R.string.content_recommendation_section_point_audio)
|
||||
binding.viewContentOriginalSeriesTitle.setTitle(
|
||||
R.string.content_recommendation_section_original_series,
|
||||
showMore = true
|
||||
)
|
||||
binding.viewContentLatestAudioTitle.setTitle(
|
||||
R.string.content_recommendation_section_latest_audio,
|
||||
showMore = true
|
||||
)
|
||||
binding.viewContentNewAndHotTitle.setTitle(
|
||||
R.string.content_recommendation_section_new_and_hot,
|
||||
showMore = true
|
||||
)
|
||||
binding.viewContentFreeAudioTitle.setTitle(
|
||||
R.string.content_recommendation_section_free_audio,
|
||||
showMore = true
|
||||
)
|
||||
binding.viewContentPointAudioTitle.setTitle(
|
||||
R.string.content_recommendation_section_point_audio,
|
||||
showMore = true
|
||||
)
|
||||
binding.viewContentMostCommentedAudioTitle.setTitle(R.string.content_recommendation_section_most_commented_audio)
|
||||
binding.viewContentRecommendedAudioTitle.setTitle(R.string.content_recommendation_section_recommended_audio)
|
||||
}
|
||||
|
||||
private fun ViewSectionTitleBinding.setTitle(titleResId: Int) {
|
||||
private fun ViewSectionTitleBinding.setTitle(
|
||||
titleResId: Int,
|
||||
showMore: Boolean = false
|
||||
) {
|
||||
tvSectionTitle.setText(titleResId)
|
||||
ivSectionTitleChevron.visibility = View.GONE
|
||||
ivSectionTitleChevron.visibility = if (showMore) View.VISIBLE else View.GONE
|
||||
}
|
||||
|
||||
private fun onBannerClick(item: ContentBannerUiModel) {
|
||||
|
||||
Reference in New Issue
Block a user