dialog_toc_regex_edit.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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:layout_width="wrap_content"
  6. android:layout_height="wrap_content"
  7. android:padding="16dp">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_gravity="center"
  12. android:orientation="vertical"
  13. tools:ignore="UselessParent">
  14. <androidx.appcompat.widget.Toolbar
  15. android:id="@+id/tool_bar"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:elevation="5dp"
  19. android:theme="?attr/actionBarStyle"
  20. app:displayHomeAsUp="false"
  21. app:fitStatusBar="false"
  22. app:popupTheme="@style/AppTheme.PopupOverlay"
  23. app:title="@string/txt_toc_rule"
  24. app:titleTextAppearance="@style/ToolbarTitle" />
  25. <androidx.core.widget.NestedScrollView
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:paddingTop="6dp"
  29. android:overScrollMode="ifContentScrolls">
  30. <LinearLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:orientation="vertical">
  34. <io.legado.app.ui.widget.text.TextInputLayout
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:hint="@string/name">
  38. <io.legado.app.lib.theme.view.ThemeEditText
  39. android:id="@+id/tv_rule_name"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  43. </io.legado.app.ui.widget.text.TextInputLayout>
  44. <io.legado.app.ui.widget.text.TextInputLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:hint="@string/regex">
  48. <io.legado.app.lib.theme.view.ThemeEditText
  49. android:id="@+id/tv_rule_regex"
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  53. </io.legado.app.ui.widget.text.TextInputLayout>
  54. <io.legado.app.ui.widget.text.TextInputLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:hint="@string/example">
  58. <io.legado.app.lib.theme.view.ThemeEditText
  59. android:id="@+id/tv_rule_example"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  63. </io.legado.app.ui.widget.text.TextInputLayout>
  64. </LinearLayout>
  65. </androidx.core.widget.NestedScrollView>
  66. </LinearLayout>
  67. </LinearLayout>