From 1c4672af7df120488a49f604d7af263dbaf7d1e6 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 3 Oct 2019 10:19:01 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/rss/article/RssArticlesActivity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt index f72a98048..7962e6bfd 100644 --- a/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/article/RssArticlesActivity.kt @@ -1,8 +1,10 @@ package io.legado.app.ui.rss.article import android.os.Bundle +import androidx.core.content.ContextCompat import androidx.lifecycle.LiveData import androidx.lifecycle.Observer +import androidx.recyclerview.widget.DividerItemDecoration import androidx.recyclerview.widget.LinearLayoutManager import io.legado.app.App import io.legado.app.R @@ -39,6 +41,12 @@ class RssArticlesActivity : VMBaseActivity(R.layout.activi private fun initView() { ATH.applyEdgeEffectColor(recycler_view) recycler_view.layoutManager = LinearLayoutManager(this) + recycler_view.addItemDecoration( + DividerItemDecoration(this, DividerItemDecoration.VERTICAL).apply { + ContextCompat.getDrawable(baseContext, R.drawable.ic_divider)?.let { + this.setDrawable(it) + } + }) adapter = RssArticlesAdapter(this, this) recycler_view.adapter = adapter refresh_progress_bar.isAutoLoading = true