dialog_variable.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:layout_gravity="center"
  12. android:background="@drawable/shape_card_view"
  13. android:orientation="vertical"
  14. tools:ignore="UselessParent">
  15. <androidx.appcompat.widget.Toolbar
  16. android:id="@+id/tool_bar"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:elevation="5dp"
  20. android:theme="?attr/actionBarStyle"
  21. app:displayHomeAsUp="false"
  22. app:fitStatusBar="false"
  23. app:title="Set variable"
  24. app:titleTextAppearance="@style/ToolbarTitle" />
  25. <io.legato.kazusa.ui.widget.text.AccentTextView
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:padding="3dp"
  29. android:text="variable"
  30. tools:ignore="HardcodedText" />
  31. <io.legato.kazusa.lib.theme.view.ThemeEditText
  32. android:id="@+id/tv_variable"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
  36. <androidx.core.widget.NestedScrollView
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:overScrollMode="ifContentScrolls">
  40. <LinearLayout
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:orientation="vertical">
  44. <io.legato.kazusa.ui.widget.text.AccentTextView
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:padding="3dp"
  48. android:text="@string/variable_comment" />
  49. <TextView
  50. android:id="@+id/tv_comment"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:padding="3dp"
  54. android:textColor="@color/secondaryText"
  55. android:textIsSelectable="true" />
  56. </LinearLayout>
  57. </androidx.core.widget.NestedScrollView>
  58. </LinearLayout>
  59. </FrameLayout>