feat: 优化

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

@ -57,9 +57,10 @@ class RssArticlesFragment : VMBaseFragment<RssArticlesViewModel>(R.layout.fragme
recycler_view.layoutManager = if (activityViewModel.isGridLayout) {
GridLayoutManager(requireContext(), 2)
} else {
recycler_view.addItemDecoration(VerticalDivider(requireContext()))
LinearLayoutManager(requireContext())
}
recycler_view.addItemDecoration(VerticalDivider(requireContext()))
adapter = RssArticlesAdapter(requireContext(), activityViewModel.layoutId, this)
recycler_view.adapter = adapter
loadMoreView = LoadMoreView(requireContext())

Loading…
Cancel
Save