pull/32/head
gedoor 6 years ago
parent ac9b10c8d7
commit 811c979141
  1. 1
      app/src/main/AndroidManifest.xml
  2. 18
      app/src/main/java/io/legado/app/ui/bookshelf/BookshelfActivity.kt
  3. 8
      app/src/main/java/io/legado/app/ui/bookshelf/BookshelfViewModel.kt
  4. 7
      app/src/main/res/layout/activity_bookshelf.xml

@ -43,6 +43,7 @@
android:theme="@style/Activity.Permission"/> android:theme="@style/Activity.Permission"/>
<activity android:name=".ui.config.ConfigActivity"/> <activity android:name=".ui.config.ConfigActivity"/>
<activity android:name=".ui.sourceedit.SourceEditActivity"/> <activity android:name=".ui.sourceedit.SourceEditActivity"/>
<activity android:name=".ui.bookshelf.BookshelfActivity" />
</application> </application>
</manifest> </manifest>

@ -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<BookshelfViewModel>() {
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?) {
}
}

@ -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) {
}

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>
Loading…
Cancel
Save