dialog_webdav_server.xml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout 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:padding="16dp">
  8. <LinearLayout
  9. android:id="@+id/vw_bg"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:layout_gravity="center"
  13. android:background="@drawable/shape_card_view"
  14. android:orientation="vertical"
  15. tools:ignore="UselessParent">
  16. <androidx.appcompat.widget.Toolbar
  17. android:id="@+id/tool_bar"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginBottom="3dp"
  21. android:background="@color/background_menu"
  22. android:elevation="5dp"
  23. android:theme="?attr/actionBarStyle"
  24. app:title="@string/server_config"
  25. app:displayHomeAsUp="false"
  26. app:fitStatusBar="false"
  27. app:popupTheme="@style/AppTheme.PopupOverlay"
  28. app:titleTextAppearance="@style/ToolbarTitle" />
  29. <io.legado.app.ui.widget.text.TextInputLayout
  30. android:id="@+id/til_name"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:hint="@string/name">
  34. <io.legado.app.lib.theme.view.ThemeEditText
  35. android:id="@+id/et_name"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  39. </io.legado.app.ui.widget.text.TextInputLayout>
  40. <LinearLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:orientation="horizontal"
  44. android:gravity="center_vertical">
  45. <io.legado.app.ui.widget.text.AccentTextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:padding="6dp"
  49. android:text="TYPE"
  50. tools:ignore="HardcodedText" />
  51. <androidx.appcompat.widget.AppCompatSpinner
  52. android:id="@+id/sp_type"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:entries="@array/server_type"
  56. android:theme="@style/Spinner"
  57. tools:ignore="TouchTargetSizeCheck" />
  58. </LinearLayout>
  59. <androidx.core.widget.NestedScrollView
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:overScrollMode="ifContentScrolls"
  63. tools:ignore="SpeakableTextPresentCheck">
  64. <com.google.android.flexbox.FlexboxLayout
  65. android:id="@+id/flexbox"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:layout_marginTop="8dp"
  69. android:clipToPadding="false"
  70. android:padding="3dp"
  71. app:dividerDrawable="@drawable/shape_space_divider"
  72. app:flexDirection="row"
  73. app:flexWrap="wrap"
  74. app:showDivider="middle" />
  75. </androidx.core.widget.NestedScrollView>
  76. </LinearLayout>
  77. </FrameLayout>