HHoris优化
68349a01创建于 2025年3月8日历史提交
<?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:id="@+id/root_view"
    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:contentInsetStartWithNavigation="0dp"
        app:displayHomeAsUp="true"
        app:title="@string/replace_rule_edit" />

    <io.legado.app.ui.widget.NoChildScrollNestedScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <LinearLayout
            android:id="@+id/ll_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="10dp">

            <io.legado.app.ui.widget.text.TextInputLayout
                android:id="@+id/til_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/replace_rule_summary">

                <io.legado.app.lib.theme.view.ThemeEditText
                    android:id="@+id/et_name"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
            </io.legado.app.ui.widget.text.TextInputLayout>

            <io.legado.app.ui.widget.text.TextInputLayout
                android:id="@+id/til_group"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/group">

                <io.legado.app.lib.theme.view.ThemeEditText
                    android:id="@+id/et_group"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
            </io.legado.app.ui.widget.text.TextInputLayout>

            <io.legado.app.ui.widget.text.TextInputLayout
                android:id="@+id/til_replace_rule"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/replace_rule">

                <io.legado.app.lib.theme.view.ThemeEditText
                    android:id="@+id/et_replace_rule"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
            </io.legado.app.ui.widget.text.TextInputLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:gravity="center_vertical">

                <io.legado.app.lib.theme.view.ThemeCheckBox
                    android:id="@+id/cb_use_regex"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="@string/use_regex"
                    tools:ignore="TouchTargetSizeCheck" />

                <ImageView
                    android:id="@+id/iv_help"
                    android:layout_width="24dp"
                    android:layout_height="24dp"
                    android:src="@drawable/ic_help"
                    app:tint="@color/primaryText"
                    android:contentDescription="@string/help" />

            </LinearLayout>

            <io.legado.app.ui.widget.text.TextInputLayout
                android:id="@+id/til_replace_to"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/replace_to">

                <io.legado.app.lib.theme.view.ThemeEditText
                    android:id="@+id/et_replace_to"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
            </io.legado.app.ui.widget.text.TextInputLayout>

            <androidx.appcompat.widget.LinearLayoutCompat
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <io.legado.app.lib.theme.view.ThemeCheckBox
                    android:id="@+id/cb_scope_title"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:checked="false"
                    android:text="@string/scope_title"
                    tools:ignore="TouchTargetSizeCheck" />

                <io.legado.app.lib.theme.view.ThemeCheckBox
                    android:id="@+id/cb_scope_content"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="10dp"
                    android:checked="true"
                    android:text="@string/scope_content"
                    tools:ignore="RtlHardcoded,TouchTargetSizeCheck" />

            </androidx.appcompat.widget.LinearLayoutCompat>

            <io.legado.app.ui.widget.text.TextInputLayout
                android:id="@+id/til_scope"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/replace_scope">

                <io.legado.app.lib.theme.view.ThemeEditText
                    android:id="@+id/et_scope"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
            </io.legado.app.ui.widget.text.TextInputLayout>

            <io.legado.app.ui.widget.text.TextInputLayout
                android:id="@+id/til_exclude_scope"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/replace_exclude_scope">

                <io.legado.app.lib.theme.view.ThemeEditText
                    android:id="@+id/et_exclude_scope"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
            </io.legado.app.ui.widget.text.TextInputLayout>

            <io.legado.app.ui.widget.text.TextInputLayout
                android:id="@+id/til_timeout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/timeout_millisecond">

                <io.legado.app.lib.theme.view.ThemeEditText
                    android:id="@+id/et_timeout"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number"
                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
            </io.legado.app.ui.widget.text.TextInputLayout>

        </LinearLayout>
    </io.legado.app.ui.widget.NoChildScrollNestedScrollView>

</LinearLayout>