From c662e74a206bea89973a5f1703d9dcd8a3f60deb Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 2 Aug 2019 10:01:26 +0800 Subject: [PATCH] up --- app/src/main/AndroidManifest.xml | 1 + .../java/io/legado/app/ui/read/ReadActivity.kt | 17 +++++++++++++++++ .../java/io/legado/app/ui/read/ReadViewModel.kt | 8 ++++++++ app/src/main/res/layout/activity_read.xml | 7 +++++++ 4 files changed, 33 insertions(+) create mode 100644 app/src/main/java/io/legado/app/ui/read/ReadActivity.kt create mode 100644 app/src/main/java/io/legado/app/ui/read/ReadViewModel.kt create mode 100644 app/src/main/res/layout/activity_read.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index db32747e6..9f73953a6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -54,6 +54,7 @@ + diff --git a/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt b/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt new file mode 100644 index 000000000..ede69761d --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/read/ReadActivity.kt @@ -0,0 +1,17 @@ +package io.legado.app.ui.read + +import android.os.Bundle +import io.legado.app.R +import io.legado.app.base.VMBaseActivity +import io.legado.app.utils.getViewModel + +class ReadActivity : VMBaseActivity(R.layout.activity_read) { + override val viewModel: ReadViewModel + get() = getViewModel(ReadViewModel::class.java) + + override fun onActivityCreated(savedInstanceState: Bundle?) { + + } + + +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/read/ReadViewModel.kt b/app/src/main/java/io/legado/app/ui/read/ReadViewModel.kt new file mode 100644 index 000000000..098ad52d7 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/read/ReadViewModel.kt @@ -0,0 +1,8 @@ +package io.legado.app.ui.read + +import android.app.Application +import io.legado.app.base.BaseViewModel + +class ReadViewModel(application: Application) : BaseViewModel(application) { + +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_read.xml b/app/src/main/res/layout/activity_read.xml new file mode 100644 index 000000000..d829e291c --- /dev/null +++ b/app/src/main/res/layout/activity_read.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file