parent
0e131f6661
commit
c2cf05ef64
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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) },
|
||||||
|
|
Loading…
Reference in New Issue