activity_member.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout 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. <data>
  6. <variable
  7. name="memberViewModel"
  8. type="com.datarecovery.master.module.member.MemberViewModel" />
  9. <import type="com.atmob.common.ui.SizeUtil" />
  10. </data>
  11. <androidx.constraintlayout.widget.ConstraintLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent">
  14. <androidx.core.widget.NestedScrollView
  15. android:id="@+id/nested_scroll_view"
  16. android:layout_width="match_parent"
  17. android:layout_height="0dp"
  18. app:layout_constraintBottom_toTopOf="@+id/view_bottom"
  19. app:layout_constraintTop_toTopOf="parent">
  20. <androidx.constraintlayout.widget.ConstraintLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content">
  23. <ImageView
  24. android:layout_width="match_parent"
  25. android:layout_height="0dp"
  26. android:src="@drawable/bg_member_header_img"
  27. app:layout_constraintDimensionRatio="1080:789"
  28. app:layout_constraintTop_toTopOf="parent" />
  29. <Space
  30. android:id="@+id/space1"
  31. android:layout_width="match_parent"
  32. android:layout_height="0dp"
  33. app:layout_constraintDimensionRatio="360:187"
  34. app:layout_constraintTop_toTopOf="parent" />
  35. <androidx.constraintlayout.widget.ConstraintLayout
  36. android:layout_width="match_parent"
  37. android:layout_height="match_parent"
  38. android:background="@drawable/bg_member_container"
  39. app:layout_constraintTop_toBottomOf="@+id/space1">
  40. <Space
  41. android:id="@+id/space_detail_top"
  42. android:layout_width="match_parent"
  43. android:layout_height="0dp"
  44. app:layout_constraintDimensionRatio="360:21"
  45. app:layout_constraintTop_toTopOf="parent" />
  46. <View
  47. android:id="@+id/icon_member_benefit"
  48. android:layout_width="0dp"
  49. android:layout_height="0dp"
  50. android:layout_marginBottom="-2dp"
  51. android:background="@drawable/bg_member_title"
  52. app:layout_constraintBottom_toBottomOf="@+id/member_func_title"
  53. app:layout_constraintDimensionRatio="64:8"
  54. app:layout_constraintLeft_toLeftOf="@+id/member_func_title"
  55. app:layout_constraintWidth_percent="0.1777777777777778" />
  56. <TextView
  57. android:id="@+id/member_func_title"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_marginStart="@dimen/app_common_page_horizontal_padding"
  61. android:text="@string/member_func_title"
  62. android:textColor="#202020"
  63. android:textSize="16sp"
  64. android:textStyle="bold"
  65. app:layout_constraintStart_toStartOf="parent"
  66. app:layout_constraintTop_toBottomOf="@+id/space_detail_top" />
  67. <Space
  68. android:id="@+id/space2"
  69. android:layout_width="match_parent"
  70. android:layout_height="0dp"
  71. app:layout_constraintDimensionRatio="360:14"
  72. app:layout_constraintTop_toBottomOf="@+id/member_func_title" />
  73. <androidx.recyclerview.widget.RecyclerView
  74. android:id="@+id/member_detail_list"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:paddingHorizontal="@dimen/app_common_page_horizontal_padding"
  78. app:layout_constraintTop_toBottomOf="@id/space2"
  79. tools:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  80. tools:listitem="@layout/item_member_goods"
  81. tools:orientation="horizontal" />
  82. <Space
  83. android:id="@+id/space3"
  84. android:layout_width="match_parent"
  85. android:layout_height="0dp"
  86. app:layout_constraintDimensionRatio="360:20"
  87. app:layout_constraintTop_toBottomOf="@+id/member_detail_list" />
  88. <TextView
  89. android:id="@+id/member_scenes_title"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:text="@{memberViewModel.selectBean.superRecover ? @string/member_super_title : @string/member_scenes_title }"
  93. android:textColor="#202020"
  94. android:textSize="14sp"
  95. android:textStyle="bold"
  96. app:layout_constraintLeft_toLeftOf="@+id/member_func_title"
  97. app:layout_constraintTop_toBottomOf="@+id/space3"
  98. tools:text="使用场景" />
  99. <Space
  100. android:id="@+id/space4"
  101. android:layout_width="match_parent"
  102. android:layout_height="0dp"
  103. app:layout_constraintDimensionRatio="360:12"
  104. app:layout_constraintTop_toBottomOf="@+id/member_scenes_title" />
  105. <androidx.recyclerview.widget.RecyclerView
  106. android:id="@+id/scenes_ry_view"
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:layout_marginHorizontal="16dp"
  110. android:background="@{memberViewModel.selectBean.superRecover ? null: @drawable/bg_scenes_container}"
  111. android:overScrollMode="never"
  112. android:padding="8dp"
  113. app:layout_constraintTop_toBottomOf="@+id/space4" />
  114. <Space
  115. android:id="@+id/space5"
  116. android:layout_width="match_parent"
  117. android:layout_height="0dp"
  118. app:layout_constraintDimensionRatio="360:20"
  119. app:layout_constraintTop_toBottomOf="@+id/scenes_ry_view" />
  120. <View
  121. android:id="@+id/v_divider"
  122. android:layout_width="match_parent"
  123. android:layout_height="0dp"
  124. android:background="#F9FAFC"
  125. app:layout_constraintDimensionRatio="360:8"
  126. app:layout_constraintTop_toBottomOf="@+id/space5" />
  127. <Space
  128. android:id="@+id/space6"
  129. android:layout_width="match_parent"
  130. android:layout_height="0dp"
  131. app:layout_constraintDimensionRatio="360:20"
  132. app:layout_constraintTop_toBottomOf="@+id/v_divider" />
  133. <View
  134. android:id="@+id/icon_user_evaluate"
  135. android:layout_width="0dp"
  136. android:layout_height="0dp"
  137. android:layout_marginBottom="-2dp"
  138. android:background="@drawable/bg_member_title"
  139. app:layout_constraintBottom_toBottomOf="@+id/member_user_evaluate_title"
  140. app:layout_constraintDimensionRatio="64:8"
  141. app:layout_constraintLeft_toLeftOf="@+id/member_user_evaluate_title"
  142. app:layout_constraintWidth_percent="0.1777777777777778" />
  143. <TextView
  144. android:id="@+id/member_user_evaluate_title"
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. android:layout_marginStart="@dimen/app_common_page_horizontal_padding"
  148. android:text="@string/member_user_evaluate"
  149. android:textColor="#202020"
  150. android:textSize="16sp"
  151. android:textStyle="bold"
  152. app:layout_constraintStart_toStartOf="parent"
  153. app:layout_constraintTop_toBottomOf="@+id/space6" />
  154. <androidx.recyclerview.widget.RecyclerView
  155. android:id="@+id/user_evaluate_ry_view"
  156. android:layout_width="match_parent"
  157. android:layout_height="wrap_content"
  158. android:overScrollMode="never"
  159. app:layout_constraintTop_toBottomOf="@+id/icon_user_evaluate" />
  160. <TextView
  161. android:id="@+id/member_service_content"
  162. android:layout_width="wrap_content"
  163. android:layout_height="wrap_content"
  164. android:text="@string/member_service_description"
  165. android:textColor="#404040"
  166. android:textSize="14sp"
  167. android:textStyle="bold"
  168. app:layout_constraintStart_toStartOf="@+id/member_scenes_title"
  169. app:layout_constraintTop_toBottomOf="@+id/user_evaluate_ry_view" />
  170. <TextView
  171. android:id="@+id/member_service_content_txt"
  172. android:layout_width="match_parent"
  173. android:layout_height="wrap_content"
  174. android:layout_marginHorizontal="@dimen/app_common_page_horizontal_padding"
  175. android:layout_marginTop="8dp"
  176. android:text="@{memberViewModel.getServiceContentTxt}"
  177. app:layout_constraintTop_toBottomOf="@+id/member_service_content"
  178. tools:text="1.根据相关法律对个人隐私保护的规定,需购买会员才可使用,请在购买套餐前仔细阅读我们的《隐私协议》,您在付费会员服务时必须完全,严格的遵守本服务协议的规则。
  179. 2.会员服务说明:您购买的任何会员服务购买成功后一年有效,但请注意,您如果先买了单个功能恢复,后续又买了全部功能恢复,那么您之前购买的单个功能恢复则无法退款。
  180. 3.若您在支付过程中遇到问题,无法支付或支付失败,请先检查自己账户内的余额,若还是存在支付问题请联系客服解决。
  181. 4.在线客服工作时间7*18小时
  182. 5.本产品功能只作为本人数据恢复,请用于合法用途经发现违法使用则立即封停账号并视情节严重与否追究法律。
  183. 6.付费会员服务仅供您自行使用,使用过程中需要电脑配合,可根据详细的恢复教程,通过获取的授权码和软件自行操作,使用过程中遇到问题可以联系官方客服解决
  184. 7.我们的软件会尽可能为您恢复出数据中可能恢复的记录,越早操作恢复概率越高。
  185. 8.支付后可开具增值税发票(纸质发票,邮寄到付)" />
  186. <Space
  187. android:layout_width="match_parent"
  188. android:layout_height="0dp"
  189. app:layout_constraintDimensionRatio="360:37"
  190. app:layout_constraintTop_toBottomOf="@+id/member_service_content_txt" />
  191. </androidx.constraintlayout.widget.ConstraintLayout>
  192. </androidx.constraintlayout.widget.ConstraintLayout>
  193. </androidx.core.widget.NestedScrollView>
  194. <View
  195. android:alpha="0"
  196. android:background="@color/white"
  197. android:id="@+id/view_status_bar"
  198. android:layout_width="match_parent"
  199. android:layout_height="@{SizeUtil.getStatusBarHeight(), default=@dimen/app_status_bar_height}"
  200. app:layout_constraintTop_toTopOf="parent" />
  201. <View
  202. android:alpha="0"
  203. android:background="@color/white"
  204. android:id="@+id/view_tool_bar"
  205. android:layout_width="match_parent"
  206. android:layout_height="0dp"
  207. app:layout_constraintBottom_toBottomOf="@+id/toolbar"
  208. app:layout_constraintTop_toTopOf="@+id/toolbar" />
  209. <androidx.appcompat.widget.Toolbar
  210. android:id="@+id/toolbar"
  211. android:layout_width="match_parent"
  212. android:layout_height="wrap_content"
  213. app:layout_constraintTop_toBottomOf="@+id/view_status_bar">
  214. <ImageView
  215. android:id="@+id/icon_back"
  216. android:layout_width="wrap_content"
  217. android:layout_height="wrap_content"
  218. android:layout_gravity="start"
  219. android:layout_marginStart="@dimen/app_common_page_horizontal_padding"
  220. android:background="?android:selectableItemBackgroundBorderless"
  221. android:src="@drawable/icon_member_back" />
  222. <TextView
  223. android:alpha="0"
  224. android:id="@+id/tv_title"
  225. android:layout_width="wrap_content"
  226. android:layout_height="wrap_content"
  227. android:layout_gravity="center"
  228. android:text="@string/member_action_title"
  229. android:textColor="#202020"
  230. android:textSize="17sp"
  231. android:textStyle="bold" />
  232. </androidx.appcompat.widget.Toolbar>
  233. <View
  234. android:id="@+id/view_bottom"
  235. android:layout_width="match_parent"
  236. android:layout_height="0dp"
  237. android:background="@drawable/bg_member_bottom"
  238. android:elevation="10dp"
  239. app:layout_constraintBottom_toBottomOf="parent"
  240. app:layout_constraintDimensionRatio="360:86" />
  241. <TextView
  242. android:layout_width="0dp"
  243. android:layout_height="0dp"
  244. android:background="@drawable/bg_member_buy_btn"
  245. android:elevation="10dp"
  246. android:gravity="center"
  247. android:onClick="@{() -> memberViewModel.onMemberSubscribeClick()}"
  248. android:text="@{memberViewModel.getSubscribeTxt}"
  249. android:textColor="#6A3420"
  250. android:textSize="16sp"
  251. android:textStyle="bold"
  252. app:layout_constraintBottom_toBottomOf="@+id/view_bottom"
  253. app:layout_constraintDimensionRatio="328:48"
  254. app:layout_constraintEnd_toEndOf="@+id/view_bottom"
  255. app:layout_constraintStart_toStartOf="@+id/view_bottom"
  256. app:layout_constraintTop_toTopOf="@+id/view_bottom"
  257. app:layout_constraintVertical_bias="0.3684210526315789"
  258. app:layout_constraintWidth_percent="0.9111111111111111" />
  259. </androidx.constraintlayout.widget.ConstraintLayout>
  260. </layout>