dialog_update.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. android:paddingHorizontal="16dp">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:orientation="vertical"
  12. android:gravity="center"
  13. android:paddingBottom="16dp">
  14. <com.google.android.material.bottomsheet.BottomSheetDragHandleView
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_gravity="center_horizontal" />
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:gravity="center"
  22. android:orientation="horizontal">
  23. <TextView
  24. android:id="@+id/bottom_sheet_title"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:text="检测到更新!"
  28. android:textSize="20sp"
  29. android:textStyle="bold" />
  30. <View
  31. android:layout_width="0dp"
  32. android:layout_height="match_parent"
  33. android:layout_weight="1"/>
  34. <com.google.android.material.button.MaterialButton
  35. android:id="@+id/btn_update"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. app:icon="@drawable/ic_download"
  39. style="@style/Widget.Material3Expressive.Button.IconButton.Tonal" />
  40. </LinearLayout>
  41. </LinearLayout>
  42. <LinearLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:gravity="center_vertical"
  46. android:orientation="horizontal"
  47. android:layout_marginVertical="8dp">
  48. <com.google.android.material.card.MaterialCardView
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. app:strokeWidth="0dp"
  52. app:cardBackgroundColor="?attr/colorSecondaryContainer">
  53. <TextView
  54. android:id="@+id/tv_current_version"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:textAppearance="?attr/textAppearanceBodyMedium"
  58. android:padding="8dp"
  59. android:text="@string/text" />
  60. </com.google.android.material.card.MaterialCardView>
  61. <View
  62. android:layout_width="0dp"
  63. android:layout_height="1dp"
  64. android:background="?attr/colorSecondary"
  65. android:layout_marginHorizontal="8dp"
  66. android:layout_weight="1"/>
  67. <com.google.android.material.card.MaterialCardView
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. app:strokeWidth="0dp"
  71. app:cardBackgroundColor="?attr/colorPrimaryContainer">
  72. <TextView
  73. android:id="@+id/tv_version"
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:textAppearance="?attr/textAppearanceBodyMedium"
  77. android:padding="8dp"
  78. android:text="@string/text" />
  79. </com.google.android.material.card.MaterialCardView>
  80. </LinearLayout>
  81. <LinearLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:gravity="center_vertical"
  85. android:orientation="horizontal">
  86. <com.google.android.material.card.MaterialCardView
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. app:cardBackgroundColor="?attr/colorPrimaryContainer"
  90. app:strokeWidth="0dp">
  91. <TextView
  92. android:id="@+id/tv_abi"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:padding="8dp"
  96. android:text="ABI: arm64-v8a"
  97. android:textAppearance="?attr/textAppearanceBodySmall"
  98. android:textColor="?attr/colorOnSurfaceVariant" />
  99. </com.google.android.material.card.MaterialCardView>
  100. <View
  101. android:layout_width="0dp"
  102. android:layout_height="1dp"
  103. android:layout_marginHorizontal="8dp"
  104. android:layout_weight="1"
  105. android:background="?attr/colorSecondary" />
  106. <com.google.android.material.card.MaterialCardView
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. app:cardBackgroundColor="?attr/colorPrimaryContainer"
  110. app:strokeWidth="0dp">
  111. <TextView
  112. android:id="@+id/tv_variable"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:padding="8dp"
  116. android:text="@string/text"
  117. android:textAppearance="?attr/textAppearanceBodyMedium" />
  118. </com.google.android.material.card.MaterialCardView>
  119. </LinearLayout>
  120. <TextView
  121. android:id="@+id/tv_url"
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content"
  124. android:text="下载链接"
  125. android:autoLink="web"
  126. android:textAppearance="?attr/textAppearanceBodySmall"
  127. android:textColor="?attr/colorPrimary"
  128. android:paddingVertical="8dp" />
  129. <TextView
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:textStyle="bold"
  133. android:textSize="14sp"
  134. android:text="更新日志"/>
  135. <androidx.core.widget.NestedScrollView
  136. android:layout_width="match_parent"
  137. android:layout_height="wrap_content">
  138. <LinearLayout
  139. android:layout_width="match_parent"
  140. android:layout_height="wrap_content"
  141. android:orientation="vertical">
  142. <io.legato.kazusa.ui.widget.text.ScrollTextView
  143. android:id="@+id/text_view"
  144. android:layout_width="match_parent"
  145. android:layout_height="match_parent"
  146. android:paddingVertical="8dp"
  147. android:textIsSelectable="true" />
  148. </LinearLayout>
  149. </androidx.core.widget.NestedScrollView>
  150. </LinearLayout>