콘텐츠 리스트, 라이브 중 전체보기

- 그리드 아이템 사이 간격 수정
This commit is contained in:
klaus 2024-03-14 18:46:22 +09:00
parent 0e131f6661
commit c2cf05ef64
4 changed files with 4 additions and 4 deletions

View File

@ -93,7 +93,7 @@ class AudioContentNewAllActivity : BaseActivity<ActivityAudioContentNewAllBindin
val spanCount = 3 val spanCount = 3
val spacing = 40 val spacing = 40
newContentAdapter = AudioContentNewAllAdapter( newContentAdapter = AudioContentNewAllAdapter(
itemWidth = (screenWidth - (spacing * spanCount)) / 3, itemWidth = (screenWidth - (spacing * (spanCount + 1))) / 3,
onClickItem = { onClickItem = {
startActivity( startActivity(
Intent(this, AudioContentDetailActivity::class.java).apply { Intent(this, AudioContentDetailActivity::class.java).apply {

View File

@ -59,7 +59,7 @@ class AudioContentAllByThemeActivity : BaseActivity<ActivityAudioContentAllByThe
val spanCount = 3 val spanCount = 3
val spacing = 40 val spacing = 40
adapter = AudioContentNewAllAdapter( adapter = AudioContentNewAllAdapter(
itemWidth = (screenWidth - (spacing * spanCount)) / 3, itemWidth = (screenWidth - (spacing * (spanCount + 1))) / 3,
onClickItem = { onClickItem = {
startActivity( startActivity(
Intent(this, AudioContentDetailActivity::class.java).apply { Intent(this, AudioContentDetailActivity::class.java).apply {

View File

@ -58,7 +58,7 @@ class AudioContentCurationActivity : BaseActivity<ActivityAudioContentCurationBi
val spanCount = 3 val spanCount = 3
val spacing = 40 val spacing = 40
adapter = AudioContentNewAllAdapter( adapter = AudioContentNewAllAdapter(
itemWidth = (screenWidth - (spacing * spanCount)) / 3, itemWidth = (screenWidth - (spacing * (spanCount + 1))) / 3,
onClickItem = { onClickItem = {
startActivity( startActivity(
Intent(this, AudioContentDetailActivity::class.java).apply { Intent(this, AudioContentDetailActivity::class.java).apply {

View File

@ -49,7 +49,7 @@ class LiveNowAllActivity : BaseActivity<ActivityLiveNowAllBinding>(
val spanCount = 3 val spanCount = 3
val spacing = 40 val spacing = 40
val recyclerView = binding.rvLive val recyclerView = binding.rvLive
adapter = LiveNowAllAdapter(itemWidth = (screenWidth - (spacing * spanCount)) / 3) { adapter = LiveNowAllAdapter(itemWidth = (screenWidth - (spacing * (spanCount + 1))) / 3) {
val detailFragment = LiveRoomDetailFragment( val detailFragment = LiveRoomDetailFragment(
it.roomId, it.roomId,
onClickParticipant = { enterLiveRoom(it.roomId) }, onClickParticipant = { enterLiveRoom(it.roomId) },