activity_book_source_edit.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <io.legado.app.ui.widget.TitleBar
  9. android:id="@+id/title_bar"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. app:title="@string/edit_book_source" />
  13. <HorizontalScrollView
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:scrollbars="none"
  17. android:paddingHorizontal="12dp">
  18. <LinearLayout
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_gravity="center_vertical"
  22. android:gravity="center_vertical"
  23. android:orientation="horizontal"
  24. tools:ignore="VisualLintBounds">
  25. <TextView
  26. android:id="@+id/tv_book_type"
  27. android:layout_width="wrap_content"
  28. android:layout_height="match_parent"
  29. android:gravity="center"
  30. android:labelFor="@id/sp_type"
  31. android:text="@string/book_type"
  32. tools:ignore="RtlHardcoded" />
  33. <androidx.appcompat.widget.AppCompatSpinner
  34. android:id="@+id/sp_type"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:contentDescription="@string/book_type"
  38. android:entries="@array/book_type"
  39. android:prompt="@string/book_type"
  40. tools:ignore="TouchTargetSizeCheck" />
  41. <io.legado.app.lib.theme.view.ThemeCheckBox
  42. android:id="@+id/cb_is_enable"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:checked="true"
  46. android:text="@string/is_enable" />
  47. <io.legado.app.lib.theme.view.ThemeCheckBox
  48. android:id="@+id/cb_is_enable_explore"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:checked="true"
  52. android:text="@string/discovery" />
  53. <io.legado.app.lib.theme.view.ThemeCheckBox
  54. android:id="@+id/cb_is_enable_cookie"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:checked="true"
  58. android:text="@string/auto_save_cookie" />
  59. <io.legado.app.lib.theme.view.ThemeCheckBox
  60. android:id="@+id/cb_is_enable_review"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:checked="false"
  64. android:text="@string/review"
  65. android:visibility="gone" />
  66. </LinearLayout>
  67. </HorizontalScrollView>
  68. <HorizontalScrollView
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:scrollbars="none"
  72. android:paddingHorizontal="12dp">
  73. <LinearLayout
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:layout_gravity="center_vertical"
  77. android:gravity="center_vertical"
  78. android:orientation="horizontal"
  79. tools:ignore="VisualLintBounds">
  80. <io.legado.app.lib.theme.view.ThemeCheckBox
  81. android:id="@+id/cb_is_event_listener"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:checked="false"
  85. android:text="@string/is_event_listener" />
  86. <io.legado.app.lib.theme.view.ThemeCheckBox
  87. android:id="@+id/cb_is_custom_button"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:checked="false"
  91. android:text="@string/custom_button" />
  92. </LinearLayout>
  93. </HorizontalScrollView>
  94. <com.google.android.material.tabs.TabLayout
  95. android:id="@+id/tab_layout"
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:paddingStart="12dp"
  99. tools:ignore="SpeakableTextPresentCheck" />
  100. <androidx.recyclerview.widget.RecyclerView
  101. android:id="@+id/recycler_view"
  102. android:layout_width="match_parent"
  103. android:layout_height="match_parent"
  104. android:paddingHorizontal="16dp"
  105. android:clipToPadding="false"
  106. tools:listitem="@layout/item_source_edit" />
  107. </LinearLayout>