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