替换规则排序

This commit is contained in:
HapeLee committed 2025-11-03 20:49:22 +08:00
1 parent 4c00917525
commit 963cc90621
6 files changed
+145 -76

No files matched your search

@@ -39,26 +39,35 @@
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_group"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:hint="@string/group">
android:orientation="horizontal">
<com.google.android.material.textfield.MaterialAutoCompleteTextView
android:id="@+id/et_group"
android:layout_width="match_parent"
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_group"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/text_default"
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
</com.google.android.material.textfield.TextInputLayout>
android:layout_weight="1"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:hint="@string/group">
<com.google.android.material.button.MaterialButton
android:id="@+id/iv_manage_groups"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/group_manage"/>
<com.google.android.material.textfield.MaterialAutoCompleteTextView
android:id="@+id/et_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/text_default"
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/iv_manage_groups"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Widget.Material3Expressive.Button.TextButton"
android:text="@string/group_manage"/>
</LinearLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/til_replace_rule"
+11 -2
View File
@@ -12,7 +12,7 @@
<com.google.android.material.checkbox.MaterialCheckBox
android:id="@+id/cb_name"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="8dp"
@@ -20,10 +20,19 @@
android:maxLines="2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@+id/swt_enabled"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry" />
<ImageView
android:id="@+id/iv_pin"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginStart="16dp"
android:src="@drawable/ic_praise"
app:layout_constraintStart_toEndOf="@id/cb_name"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/swt_enabled"
android:name="@string/enable"