|
|
@ -55,6 +55,7 @@ class RssArticlesFragment : VMBaseFragment<RssArticlesViewModel>(R.layout.fragme |
|
|
|
private fun initView() { |
|
|
|
private fun initView() { |
|
|
|
ATH.applyEdgeEffectColor(recycler_view) |
|
|
|
ATH.applyEdgeEffectColor(recycler_view) |
|
|
|
recycler_view.layoutManager = if (activityViewModel.isGridLayout) { |
|
|
|
recycler_view.layoutManager = if (activityViewModel.isGridLayout) { |
|
|
|
|
|
|
|
recycler_view.setPadding(8, 0, 8, 0) |
|
|
|
GridLayoutManager(requireContext(), 2) |
|
|
|
GridLayoutManager(requireContext(), 2) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
recycler_view.addItemDecoration(VerticalDivider(requireContext())) |
|
|
|
recycler_view.addItemDecoration(VerticalDivider(requireContext())) |
|
|
|