pull/32/head
GKF 6 years ago
parent 5302c0a2a4
commit fe5c706a0a
  1. 1
      app/src/main/AndroidManifest.xml
  2. 19
      app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt
  3. 8
      app/src/main/java/io/legado/app/ui/sourceedit/SourceEditViewModel.kt
  4. 59
      app/src/main/res/layout/activity_source_edit.xml

@ -42,6 +42,7 @@
<activity android:name=".help.permission.PermissionActivity"
android:theme="@style/Activity.Permission"/>
<activity android:name=".ui.config.ConfigActivity"/>
<activity android:name=".ui.sourceedit.SourceEditActivity"/>
</application>
</manifest>

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

@ -0,0 +1,8 @@
package io.legado.app.ui.sourceedit
import android.app.Application
import androidx.lifecycle.AndroidViewModel
class SourceEditViewModel(application: Application) : AndroidViewModel(application) {
}

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:fitsSystemWindows="true"
android:id="@+id/ll_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<io.legado.app.ui.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:title="书源编辑"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.kunfei.bookshelf.widget.views.ATECheckBox
android:id="@+id/cb_is_enable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="@string/is_enable"/>
<com.kunfei.bookshelf.widget.views.ATECheckBox
android:id="@+id/cb_is_audio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="false"
android:text="@string/audio"/>
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"/>
<TextView
android:id="@+id/tv_edit_find"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:textColor="@color/tv_text_default"
android:background="@drawable/selector_fillet_btn_bg"
android:text="@string/edit_find"/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
Loading…
Cancel
Save