pull/32/head
parent
5302c0a2a4
commit
fe5c706a0a
@ -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…
Reference in new issue