diff --git a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt new file mode 100644 index 000000000..acf1e5d71 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookActivity.kt @@ -0,0 +1,34 @@ +package io.legado.app.ui.book.remote + +import android.os.Bundle +import androidx.activity.viewModels +import io.legado.app.base.VMBaseActivity + + +import io.legado.app.databinding.ActivityRemoteBookBinding +import io.legado.app.utils.toastOnUi + +import io.legado.app.utils.viewbindingdelegate.viewBinding + +/** + * 展示远程书籍 + * @author qianfanguojin + * @time 2022/05/12 + */ +class RemoteBookActivity : VMBaseActivity() { + override val binding by viewBinding(ActivityRemoteBookBinding::inflate) + override val viewModel by viewModels() + override fun onActivityCreated(savedInstanceState: Bundle?) { + toastOnUi("远程书籍") + } + + private fun initView() { +// binding.layTop.setBackgroundColor(backgroundColor) +// binding.recyclerView.layoutManager = LinearLayoutManager(this) +// binding.recyclerView.adapter = adapter +// binding.selectActionBar.setMainActionText(R.string.add_to_shelf) +// binding.selectActionBar.inflateMenu(R.menu.import_book_sel) +// binding.selectActionBar.setOnMenuItemClickListener(this) +// binding.selectActionBar.setCallBack(this) + } +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt new file mode 100644 index 000000000..26088cff5 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookViewModel.kt @@ -0,0 +1,7 @@ +package io.legado.app.ui.book.remote + +import android.app.Application +import io.legado.app.base.BaseViewModel + +class RemoteBookViewModel(application: Application): BaseViewModel(application){ +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_remote_book.xml b/app/src/main/res/layout/activity_remote_book.xml new file mode 100644 index 000000000..00473e8c1 --- /dev/null +++ b/app/src/main/res/layout/activity_remote_book.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + \ No newline at end of file