mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
534731fed6
commit
e3bad0469a
@ -0,0 +1,17 @@
|
||||
package io.legado.app.ui.dict.rule
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.viewModels
|
||||
import io.legado.app.base.VMBaseActivity
|
||||
import io.legado.app.databinding.ActivityDictRuleBinding
|
||||
import io.legado.app.utils.viewbindingdelegate.viewBinding
|
||||
|
||||
class DictRuleActivity : VMBaseActivity<ActivityDictRuleBinding, DictRuleViewModel>() {
|
||||
|
||||
override val viewModel by viewModels<DictRuleViewModel>()
|
||||
override val binding by viewBinding(ActivityDictRuleBinding::inflate)
|
||||
|
||||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package io.legado.app.ui.dict.rule
|
||||
|
||||
import android.app.Application
|
||||
import io.legado.app.base.BaseViewModel
|
||||
|
||||
class DictRuleViewModel(application: Application) : BaseViewModel(application)
|
36
app/src/main/res/layout/activity_dict_rule.xml
Normal file
36
app/src/main/res/layout/activity_dict_rule.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".ui.replace.ReplaceRuleActivity">
|
||||
|
||||
<io.legado.app.ui.widget.TitleBar
|
||||
android:id="@+id/title_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:contentInsetStartWithNavigation="0dp"
|
||||
app:contentLayout="@layout/view_search"
|
||||
app:title="@string/dict_rule" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<io.legado.app.ui.widget.recycler.scroller.FastScrollRecyclerView
|
||||
android:id="@+id/recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:ignore="SpeakableTextPresentCheck" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<io.legado.app.ui.widget.SelectActionBar
|
||||
android:id="@+id/select_action_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
@ -1072,4 +1072,5 @@
|
||||
<string name="clear_webview_data">清除 WebView 数据</string>
|
||||
<string name="clear_webview_data_summary">清除内置浏览器所有数据</string>
|
||||
<string name="source_tab_list">列表</string>
|
||||
<string name="dict_rule">字典规则</string>
|
||||
</resources>
|
||||
|
@ -1075,4 +1075,5 @@
|
||||
<string name="clear_webview_data">清除 WebView 数据</string>
|
||||
<string name="clear_webview_data_summary">清除内置浏览器所有数据</string>
|
||||
<string name="source_tab_list">列表</string>
|
||||
<string name="dict_rule">字典规则</string>
|
||||
</resources>
|
||||
|
@ -1075,4 +1075,5 @@
|
||||
<string name="clear_webview_data">清除 WebView 数据</string>
|
||||
<string name="clear_webview_data_summary">清除内置浏览器所有数据</string>
|
||||
<string name="source_tab_list">列表</string>
|
||||
<string name="dict_rule">字典规则</string>
|
||||
</resources>
|
||||
|
@ -1072,4 +1072,5 @@
|
||||
<string name="clear_webview_data">清除 WebView 数据</string>
|
||||
<string name="clear_webview_data_summary">清除内置浏览器所有数据</string>
|
||||
<string name="source_tab_list">列表</string>
|
||||
<string name="dict_rule">字典规则</string>
|
||||
</resources>
|
||||
|
@ -1074,4 +1074,5 @@
|
||||
<string name="clear_webview_data">清除 WebView 数据</string>
|
||||
<string name="clear_webview_data_summary">清除内置浏览器所有数据</string>
|
||||
<string name="source_tab_list">列表</string>
|
||||
<string name="dict_rule">字典规则</string>
|
||||
</resources>
|
||||
|
@ -1074,4 +1074,5 @@
|
||||
<string name="clear_webview_data">清除 WebView 数据</string>
|
||||
<string name="clear_webview_data_summary">清除内置浏览器所有数据</string>
|
||||
<string name="source_tab_list">列表</string>
|
||||
<string name="dict_rule">字典规则</string>
|
||||
</resources>
|
||||
|
@ -1075,4 +1075,5 @@
|
||||
<string name="clear_webview_data">清除 WebView 数据</string>
|
||||
<string name="clear_webview_data_summary">清除内置浏览器所有数据</string>
|
||||
<string name="source_tab_list">List</string>
|
||||
<string name="dict_rule">Dict rule</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user