feat: 优化

pull/219/head
kunfei 5 years ago
parent 636b8b1e77
commit a0a2cd9402
  1. 1
      app/src/main/java/io/legado/app/ui/rss/article/RssArticlesFragment.kt

@ -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()))

Loading…
Cancel
Save