diff --git a/app/src/main/java/io/legado/app/data/entities/RssSource.kt b/app/src/main/java/io/legado/app/data/entities/RssSource.kt new file mode 100644 index 000000000..028740ee0 --- /dev/null +++ b/app/src/main/java/io/legado/app/data/entities/RssSource.kt @@ -0,0 +1,8 @@ +package io.legado.app.data.entities + +import androidx.room.Entity + +@Entity(tableName = "rssSources") +data class RssSource( + var sourceName: String +) \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/main/rss/RssAdapter.kt b/app/src/main/java/io/legado/app/ui/main/rss/RssAdapter.kt index 192f436ee..bcf752a39 100644 --- a/app/src/main/java/io/legado/app/ui/main/rss/RssAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/main/rss/RssAdapter.kt @@ -1,2 +1,12 @@ package io.legado.app.ui.main.rss +import android.view.View +import androidx.recyclerview.widget.RecyclerView + +class RssAdapter { + + + class MyViewHolder(view: View) : RecyclerView.ViewHolder(view) { + + } +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt b/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt index 712c1f945..4b12972ec 100644 --- a/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt +++ b/app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt @@ -1,8 +1,17 @@ package io.legado.app.ui.main.rss +import android.os.Bundle +import android.view.View import io.legado.app.R import io.legado.app.base.BaseFragment class RssFragment : BaseFragment(R.layout.fragment_rss) { + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + initRecyclerView() + } + + private fun initRecyclerView() { + + } } \ No newline at end of file