From fe5c706a0aa4b07f29c52a5235d6d0663f3b9b33 Mon Sep 17 00:00:00 2001 From: GKF Date: Thu, 6 Jun 2019 11:52:52 +0800 Subject: [PATCH] up --- app/src/main/AndroidManifest.xml | 1 + .../app/ui/sourceedit/SourceEditActivity.kt | 19 ++++++ .../app/ui/sourceedit/SourceEditViewModel.kt | 8 +++ .../main/res/layout/activity_source_edit.xml | 59 +++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt create mode 100644 app/src/main/java/io/legado/app/ui/sourceedit/SourceEditViewModel.kt create mode 100644 app/src/main/res/layout/activity_source_edit.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4663ae81d..6cf4d7d67 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -42,6 +42,7 @@ + \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt b/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt new file mode 100644 index 000000000..f4db1d5b4 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt @@ -0,0 +1,19 @@ +package io.legado.app.ui.sourceedit + +import android.os.Bundle +import io.legado.app.R +import io.legado.app.base.BaseActivity +import io.legado.app.utils.getViewModel + +class SourceEditActivity : BaseActivity() { + override val viewModel: SourceEditViewModel + get() = getViewModel(SourceEditViewModel::class.java) + override val layoutID: Int + get() = R.layout.activity_source_edit + + override fun onViewModelCreated(viewModel: SourceEditViewModel, savedInstanceState: Bundle?) { + + } + + +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditViewModel.kt b/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditViewModel.kt new file mode 100644 index 000000000..4be930291 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditViewModel.kt @@ -0,0 +1,8 @@ +package io.legado.app.ui.sourceedit + +import android.app.Application +import androidx.lifecycle.AndroidViewModel + +class SourceEditViewModel(application: Application) : AndroidViewModel(application) { + +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_source_edit.xml b/app/src/main/res/layout/activity_source_edit.xml new file mode 100644 index 000000000..024dedb49 --- /dev/null +++ b/app/src/main/res/layout/activity_source_edit.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file