dialog_url_option_edit.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:padding="16dp">
  7. <LinearLayout
  8. android:id="@+id/vw_bg"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:background="@drawable/shape_card_view"
  12. android:orientation="vertical"
  13. android:layout_gravity="center"
  14. android:padding="16dp"
  15. tools:ignore="UselessParent">
  16. <LinearLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:gravity="center_vertical"
  20. android:orientation="horizontal"
  21. android:paddingBottom="10dp">
  22. <TextView
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:text="@string/url_option"
  26. android:textSize="18sp"
  27. android:textStyle="bold" />
  28. <Space
  29. android:layout_width="0dp"
  30. android:layout_height="1dp"
  31. android:layout_weight="1" />
  32. <TextView
  33. android:id="@+id/tv_ok"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:background="?attr/selectableItemBackgroundBorderless"
  37. android:padding="12dp"
  38. android:text="@string/ok" />
  39. </LinearLayout>
  40. <androidx.core.widget.NestedScrollView
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:overScrollMode="ifContentScrolls">
  44. <LinearLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:orientation="vertical">
  48. <io.legado.app.lib.theme.view.ThemeCheckBox
  49. android:id="@+id/cb_use_web_view"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:text="useWebView"
  53. tools:ignore="HardcodedText" />
  54. <io.legado.app.ui.widget.text.TextInputLayout
  55. android:id="@+id/layout_method"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content">
  58. <io.legado.app.ui.widget.text.AutoCompleteTextView
  59. android:id="@+id/edit_method"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:hint="method"
  63. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  64. </io.legado.app.ui.widget.text.TextInputLayout>
  65. <io.legado.app.ui.widget.text.TextInputLayout
  66. android:id="@+id/layout_charset"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content">
  69. <io.legado.app.ui.widget.text.AutoCompleteTextView
  70. android:id="@+id/edit_charset"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:hint="charset"
  74. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  75. </io.legado.app.ui.widget.text.TextInputLayout>
  76. <io.legado.app.ui.widget.text.TextInputLayout
  77. android:id="@+id/layout_headers"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content">
  80. <io.legado.app.ui.widget.text.AutoCompleteTextView
  81. android:id="@+id/edit_headers"
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:hint="headers"
  85. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  86. </io.legado.app.ui.widget.text.TextInputLayout>
  87. <io.legado.app.ui.widget.text.TextInputLayout
  88. android:id="@+id/layout_body"
  89. android:layout_width="match_parent"
  90. android:layout_height="wrap_content">
  91. <io.legado.app.ui.widget.text.AutoCompleteTextView
  92. android:id="@+id/edit_body"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:hint="body"
  96. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  97. </io.legado.app.ui.widget.text.TextInputLayout>
  98. <io.legado.app.ui.widget.text.TextInputLayout
  99. android:id="@+id/layout_type"
  100. android:layout_width="match_parent"
  101. android:layout_height="wrap_content">
  102. <io.legado.app.ui.widget.text.AutoCompleteTextView
  103. android:id="@+id/edit_type"
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:hint="type"
  107. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  108. </io.legado.app.ui.widget.text.TextInputLayout>
  109. <io.legado.app.ui.widget.text.TextInputLayout
  110. android:id="@+id/layout_retry"
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content">
  113. <io.legado.app.ui.widget.text.AutoCompleteTextView
  114. android:id="@+id/edit_retry"
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:hint="retry"
  118. android:inputType="number"
  119. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  120. </io.legado.app.ui.widget.text.TextInputLayout>
  121. <io.legado.app.ui.widget.text.TextInputLayout
  122. android:id="@+id/layout_web_js"
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content">
  125. <io.legado.app.ui.widget.text.AutoCompleteTextView
  126. android:id="@+id/edit_web_js"
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content"
  129. android:hint="webJs"
  130. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  131. </io.legado.app.ui.widget.text.TextInputLayout>
  132. <io.legado.app.ui.widget.text.TextInputLayout
  133. android:id="@+id/layout_js"
  134. android:layout_width="match_parent"
  135. android:layout_height="wrap_content">
  136. <io.legado.app.ui.widget.text.AutoCompleteTextView
  137. android:id="@+id/edit_js"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:hint="js"
  141. tools:ignore="HardcodedText,SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  142. </io.legado.app.ui.widget.text.TextInputLayout>
  143. </LinearLayout>
  144. </androidx.core.widget.NestedScrollView>
  145. </LinearLayout>
  146. </FrameLayout>