activity_replace_edit.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/root_view"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical">
  9. <io.legado.app.ui.widget.TitleBar
  10. android:id="@+id/title_bar"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. app:contentInsetStartWithNavigation="0dp"
  14. app:displayHomeAsUp="true"
  15. app:fitStatusBar="false"
  16. app:title="@string/replace_rule_edit" />
  17. <androidx.core.widget.NestedScrollView
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content">
  20. <LinearLayout
  21. android:id="@+id/ll_content"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:orientation="vertical"
  25. android:padding="10dp">
  26. <io.legado.app.ui.widget.text.TextInputLayout
  27. android:id="@+id/til_name"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:hint="@string/replace_rule_summary">
  31. <io.legado.app.lib.theme.view.ThemeEditText
  32. android:id="@+id/et_name"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  36. </io.legado.app.ui.widget.text.TextInputLayout>
  37. <io.legado.app.ui.widget.text.TextInputLayout
  38. android:id="@+id/til_group"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:hint="@string/group">
  42. <io.legado.app.lib.theme.view.ThemeEditText
  43. android:id="@+id/et_group"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  47. </io.legado.app.ui.widget.text.TextInputLayout>
  48. <io.legado.app.ui.widget.text.TextInputLayout
  49. android:id="@+id/til_replace_rule"
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:hint="@string/replace_rule">
  53. <io.legado.app.lib.theme.view.ThemeEditText
  54. android:id="@+id/et_replace_rule"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  58. </io.legado.app.ui.widget.text.TextInputLayout>
  59. <LinearLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:orientation="horizontal"
  63. android:gravity="center_vertical">
  64. <io.legado.app.lib.theme.view.ThemeCheckBox
  65. android:id="@+id/cb_use_regex"
  66. android:layout_width="0dp"
  67. android:layout_height="wrap_content"
  68. android:layout_weight="1"
  69. android:text="@string/use_regex"
  70. tools:ignore="TouchTargetSizeCheck" />
  71. <ImageView
  72. android:id="@+id/iv_help"
  73. android:layout_width="24dp"
  74. android:layout_height="24dp"
  75. android:src="@drawable/ic_help"
  76. app:tint="@color/primaryText"
  77. android:contentDescription="@string/help" />
  78. </LinearLayout>
  79. <io.legado.app.ui.widget.text.TextInputLayout
  80. android:id="@+id/til_replace_to"
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:hint="@string/replace_to">
  84. <io.legado.app.lib.theme.view.ThemeEditText
  85. android:id="@+id/et_replace_to"
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  89. </io.legado.app.ui.widget.text.TextInputLayout>
  90. <androidx.appcompat.widget.LinearLayoutCompat
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content">
  93. <io.legado.app.lib.theme.view.ThemeCheckBox
  94. android:id="@+id/cb_scope_title"
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:checked="false"
  98. android:text="@string/scope_title"
  99. tools:ignore="TouchTargetSizeCheck" />
  100. <io.legado.app.lib.theme.view.ThemeCheckBox
  101. android:id="@+id/cb_scope_content"
  102. android:layout_width="wrap_content"
  103. android:layout_height="wrap_content"
  104. android:layout_marginLeft="10dp"
  105. android:checked="true"
  106. android:text="@string/scope_content"
  107. tools:ignore="RtlHardcoded,TouchTargetSizeCheck" />
  108. </androidx.appcompat.widget.LinearLayoutCompat>
  109. <io.legado.app.ui.widget.text.TextInputLayout
  110. android:id="@+id/til_scope"
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content"
  113. android:hint="@string/use_to">
  114. <io.legado.app.lib.theme.view.ThemeEditText
  115. android:id="@+id/et_scope"
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  119. </io.legado.app.ui.widget.text.TextInputLayout>
  120. <io.legado.app.ui.widget.text.TextInputLayout
  121. android:id="@+id/til_timeout"
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content"
  124. android:hint="@string/timeout_millisecond">
  125. <io.legado.app.lib.theme.view.ThemeEditText
  126. android:id="@+id/et_timeout"
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content"
  129. android:inputType="number"
  130. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  131. </io.legado.app.ui.widget.text.TextInputLayout>
  132. </LinearLayout>
  133. </androidx.core.widget.NestedScrollView>
  134. </LinearLayout>