From 811c979141bcc07d08765ba35d7c5bf04d51f5ab Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 10 Jun 2019 21:51:16 +0800 Subject: [PATCH] up --- app/src/main/AndroidManifest.xml | 1 + .../app/ui/bookshelf/BookshelfActivity.kt | 18 ++++++++++++++++++ .../app/ui/bookshelf/BookshelfViewModel.kt | 8 ++++++++ app/src/main/res/layout/activity_bookshelf.xml | 7 +++++++ 4 files changed, 34 insertions(+) create mode 100644 app/src/main/java/io/legado/app/ui/bookshelf/BookshelfActivity.kt create mode 100644 app/src/main/java/io/legado/app/ui/bookshelf/BookshelfViewModel.kt create mode 100644 app/src/main/res/layout/activity_bookshelf.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6cf4d7d67..9682d9f2e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -43,6 +43,7 @@ android:theme="@style/Activity.Permission"/> + \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/bookshelf/BookshelfActivity.kt b/app/src/main/java/io/legado/app/ui/bookshelf/BookshelfActivity.kt new file mode 100644 index 000000000..a1862417f --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/bookshelf/BookshelfActivity.kt @@ -0,0 +1,18 @@ +package io.legado.app.ui.bookshelf + +import android.os.Bundle +import io.legado.app.R +import io.legado.app.base.BaseActivity +import io.legado.app.utils.getViewModel + +class BookshelfActivity : BaseActivity() { + override val viewModel: BookshelfViewModel + get() = getViewModel(BookshelfViewModel::class.java) + override val layoutID: Int + get() = R.layout.activity_bookshelf + + override fun onViewModelCreated(viewModel: BookshelfViewModel, savedInstanceState: Bundle?) { + + } + +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/bookshelf/BookshelfViewModel.kt b/app/src/main/java/io/legado/app/ui/bookshelf/BookshelfViewModel.kt new file mode 100644 index 000000000..717663d89 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/bookshelf/BookshelfViewModel.kt @@ -0,0 +1,8 @@ +package io.legado.app.ui.bookshelf + +import android.app.Application +import io.legado.app.base.BaseViewModel + +class BookshelfViewModel(application: Application) : BaseViewModel(application) { + +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_bookshelf.xml b/app/src/main/res/layout/activity_bookshelf.xml new file mode 100644 index 000000000..d829e291c --- /dev/null +++ b/app/src/main/res/layout/activity_bookshelf.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file