parent
623ff545b5
commit
189e757100
|
@ -237,14 +237,15 @@ class AudioContentMainTabSeriesFragment : BaseFragment<FragmentAudioContentMainT
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.rvRankSeries.layoutManager = GridLayoutManager(
|
val recyclerView = binding.rvRankSeries
|
||||||
|
recyclerView.layoutManager = GridLayoutManager(
|
||||||
context,
|
context,
|
||||||
3,
|
3,
|
||||||
GridLayoutManager.HORIZONTAL,
|
GridLayoutManager.HORIZONTAL,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
|
|
||||||
binding.rvRankSeries.addItemDecoration(object : RecyclerView.ItemDecoration() {
|
recyclerView.addItemDecoration(object : RecyclerView.ItemDecoration() {
|
||||||
override fun getItemOffsets(
|
override fun getItemOffsets(
|
||||||
outRect: Rect,
|
outRect: Rect,
|
||||||
view: View,
|
view: View,
|
||||||
|
@ -259,7 +260,7 @@ class AudioContentMainTabSeriesFragment : BaseFragment<FragmentAudioContentMainT
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
binding.rvRankSeries.adapter = rankDailySeriesAdapter
|
recyclerView.adapter = rankDailySeriesAdapter
|
||||||
|
|
||||||
viewModel.rankSeriesListLiveData.observe(viewLifecycleOwner) {
|
viewModel.rankSeriesListLiveData.observe(viewLifecycleOwner) {
|
||||||
if (it.isNotEmpty()) {
|
if (it.isNotEmpty()) {
|
||||||
|
@ -484,7 +485,7 @@ class AudioContentMainTabSeriesFragment : BaseFragment<FragmentAudioContentMainT
|
||||||
isVisibleCreator = true
|
isVisibleCreator = true
|
||||||
)
|
)
|
||||||
|
|
||||||
val recyclerView = binding.rvRankSeries
|
val recyclerView = binding.rvCompleteSeries
|
||||||
recyclerView.layoutManager = LinearLayoutManager(
|
recyclerView.layoutManager = LinearLayoutManager(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
LinearLayoutManager.HORIZONTAL,
|
LinearLayoutManager.HORIZONTAL,
|
||||||
|
|
Loading…
Reference in New Issue