activity_tibetan_details.xml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  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="vm"
  8. type="com.hdl.xl.vmodel.TibetanDetailsVModel" />
  9. <import type="android.view.View" />
  10. </data>
  11. <LinearLayout
  12. android:id="@+id/ll"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:background="@color/c_bg"
  16. android:orientation="vertical">
  17. <com.hdl.xl.view.MyScrollView
  18. android:id="@+id/scroll"
  19. android:layout_width="match_parent"
  20. android:layout_height="0dp"
  21. android:layout_weight="1"
  22. android:scrollbars="none">
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:orientation="vertical">
  27. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:layout_marginStart="15dp"
  31. android:layout_marginTop="22dp"
  32. android:layout_marginEnd="15dp"
  33. android:orientation="vertical"
  34. android:paddingStart="20dp"
  35. android:paddingTop="20dp"
  36. android:paddingEnd="20dp"
  37. android:paddingBottom="23dp"
  38. app:qmui_backgroundColor="#B3444444"
  39. app:qmui_borderColor="#B3979797"
  40. app:qmui_borderWidth="@dimen/dp_1"
  41. app:qmui_radius="20sp">
  42. <FrameLayout
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content">
  45. <com.qmuiteam.qmui.widget.QMUIRadiusImageView
  46. android:id="@+id/image_view"
  47. android:layout_width="match_parent"
  48. android:layout_height="305dp"
  49. app:qmui_border_color="@color/translucent"
  50. app:qmui_corner_radius="20dp"
  51. android:src="@drawable/bg_need_error"
  52. android:scaleType="centerCrop" />
  53. </FrameLayout>
  54. <TextView
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:layout_gravity="center_horizontal"
  58. android:layout_marginTop="16dp"
  59. android:text="@{vm.data.name}"
  60. android:textColor="@color/white"
  61. android:textSize="22sp"
  62. android:textStyle="bold" />
  63. <LinearLayout
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_gravity="center_horizontal"
  67. android:layout_marginTop="10dp"
  68. android:gravity="center">
  69. <TextView
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:background="@drawable/bg_three_but"
  73. android:paddingStart="9dp"
  74. android:paddingTop="2dp"
  75. android:paddingEnd="9dp"
  76. android:paddingBottom="2dp"
  77. android:text="发售量"
  78. android:textColor="#333333"
  79. android:textSize="10sp" />
  80. <TextView
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_marginEnd="12dp"
  84. android:background="@drawable/bg_kuang_blue"
  85. android:hint="100份"
  86. android:paddingStart="2dp"
  87. android:gravity="center"
  88. android:paddingTop="2dp"
  89. android:paddingEnd="2dp"
  90. android:paddingBottom="2dp"
  91. android:text="@{vm.data.inventory+`份`}"
  92. android:textColor="#54D7E9"
  93. android:textColorHint="#54D7E9"
  94. android:textSize="@dimen/dp_10" />
  95. <TextView
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:background="@drawable/bg_three_but"
  99. android:paddingStart="2dp"
  100. android:paddingTop="2dp"
  101. android:paddingEnd="2dp"
  102. android:paddingBottom="2dp"
  103. android:text="流通量"
  104. android:textColor="#333333"
  105. android:textSize="10sp" />
  106. <TextView
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_marginEnd="12dp"
  110. android:background="@drawable/bg_kuang_blue"
  111. android:hint="100份"
  112. android:gravity="center"
  113. android:paddingStart="2dp"
  114. android:paddingTop="2dp"
  115. android:paddingEnd="2dp"
  116. android:paddingBottom="2dp"
  117. android:text="@{vm.data.now_inventory+`份`}"
  118. android:textColor="#54D7E9"
  119. android:textColorHint="#54D7E9"
  120. android:textSize="@dimen/dp_10" />
  121. <TextView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:background="@drawable/bg_three_but"
  125. android:paddingStart="2dp"
  126. android:paddingTop="2dp"
  127. android:paddingEnd="2dp"
  128. android:paddingBottom="2dp"
  129. android:text="限购量"
  130. android:textColor="#333333"
  131. android:textSize="10sp" />
  132. <TextView
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:background="@drawable/bg_kuang_blue"
  136. android:hint="100份"
  137. android:paddingStart="2dp"
  138. android:paddingTop="2dp"
  139. android:paddingEnd="2dp"
  140. android:gravity="center"
  141. android:paddingBottom="2dp"
  142. android:text="@{vm.data.buy_count+`份`}"
  143. android:textColor="#54D7E9"
  144. android:textColorHint="#54D7E9"
  145. android:textSize="@dimen/dp_10" />
  146. </LinearLayout>
  147. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  148. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:layout_marginStart="15dp"
  152. android:layout_marginTop="12dp"
  153. android:layout_marginEnd="15dp"
  154. android:orientation="vertical"
  155. android:paddingStart="10dp"
  156. android:paddingTop="10dp"
  157. android:paddingEnd="10dp"
  158. android:paddingBottom="15dp"
  159. app:qmui_backgroundColor="#B3444444"
  160. app:qmui_borderColor="#B3444444"
  161. app:qmui_borderWidth="@dimen/dp_1"
  162. app:qmui_radius="16sp">
  163. <androidx.constraintlayout.widget.ConstraintLayout
  164. android:layout_width="match_parent"
  165. android:layout_height="wrap_content">
  166. <TextView
  167. android:layout_width="wrap_content"
  168. android:layout_height="wrap_content"
  169. android:layout_marginStart="17dp"
  170. android:text="认证信息"
  171. android:textColor="@color/white"
  172. android:textSize="18sp"
  173. android:textStyle="bold"
  174. app:layout_constraintLeft_toLeftOf="parent"
  175. app:layout_constraintTop_toTopOf="parent" />
  176. <ImageView
  177. android:id="@+id/img_tag"
  178. android:layout_width="22dp"
  179. android:layout_height="23dp"
  180. android:src="@drawable/ct_tags"
  181. app:layout_constraintLeft_toLeftOf="parent"
  182. app:layout_constraintTop_toTopOf="parent" />
  183. </androidx.constraintlayout.widget.ConstraintLayout>
  184. <LinearLayout
  185. android:layout_width="match_parent"
  186. android:layout_height="wrap_content"
  187. android:layout_marginTop="16dp"
  188. android:gravity="center_vertical"
  189. android:orientation="horizontal">
  190. <TextView
  191. android:layout_width="wrap_content"
  192. android:layout_height="wrap_content"
  193. android:text="区块链"
  194. android:textColor="#999999"
  195. android:textSize="13sp" />
  196. <TextView
  197. android:layout_width="match_parent"
  198. android:layout_height="wrap_content"
  199. android:gravity="right"
  200. android:text="@{vm.linkName}"
  201. android:textColor="@color/white"
  202. android:textSize="12sp" />
  203. </LinearLayout>
  204. <LinearLayout
  205. android:layout_width="match_parent"
  206. android:layout_height="wrap_content"
  207. android:layout_marginTop="14dp"
  208. android:gravity="center_vertical"
  209. android:orientation="horizontal"
  210. >
  211. <TextView
  212. android:layout_width="wrap_content"
  213. android:layout_height="wrap_content"
  214. android:text="合约地址"
  215. android:textColor="#999999"
  216. android:textSize="12sp" />
  217. <TextView
  218. android:layout_width="0dp"
  219. android:layout_height="wrap_content"
  220. android:layout_marginStart="12dp"
  221. android:layout_marginEnd="6dp"
  222. android:layout_weight="1"
  223. android:gravity="right"
  224. android:text="@{vm.link}"
  225. android:textColor="@color/white"
  226. android:textSize="13sp" />
  227. <ImageView
  228. android:layout_width="17dp"
  229. android:layout_height="17dp"
  230. android:onClick="@{v->vm.toCopy()}"
  231. android:src="@drawable/ct_copy" />
  232. </LinearLayout>
  233. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  234. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  235. android:layout_width="match_parent"
  236. android:layout_height="wrap_content"
  237. android:layout_marginStart="15dp"
  238. android:layout_marginTop="12dp"
  239. android:layout_marginEnd="15dp"
  240. android:orientation="vertical"
  241. android:paddingStart="10dp"
  242. android:paddingTop="10dp"
  243. android:paddingEnd="10dp"
  244. android:paddingBottom="12dp"
  245. app:qmui_backgroundColor="#B3444444"
  246. app:qmui_borderColor="#B3444444"
  247. app:qmui_borderWidth="@dimen/dp_1"
  248. app:qmui_radius="16sp">
  249. <androidx.constraintlayout.widget.ConstraintLayout
  250. android:layout_width="match_parent"
  251. android:layout_height="wrap_content">
  252. <TextView
  253. android:layout_width="wrap_content"
  254. android:layout_height="wrap_content"
  255. android:layout_marginStart="17dp"
  256. android:text="藏品详情"
  257. android:textColor="@color/white"
  258. android:textSize="18sp"
  259. android:textStyle="bold"
  260. app:layout_constraintLeft_toLeftOf="parent"
  261. app:layout_constraintTop_toTopOf="parent" />
  262. <ImageView
  263. android:layout_width="22dp"
  264. android:layout_height="23dp"
  265. android:src="@drawable/ct_tags"
  266. app:layout_constraintLeft_toLeftOf="parent"
  267. app:layout_constraintTop_toTopOf="parent" />
  268. </androidx.constraintlayout.widget.ConstraintLayout>
  269. <LinearLayout
  270. android:layout_width="match_parent"
  271. android:orientation="vertical"
  272. android:layout_marginTop="14dp"
  273. android:layout_height="wrap_content">
  274. <androidx.recyclerview.widget.RecyclerView
  275. android:id="@+id/recycler_view"
  276. android:layout_width="match_parent"
  277. android:layout_height="wrap_content"
  278. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  279. tools:listitem="@layout/item_images" />
  280. </LinearLayout>
  281. <LinearLayout
  282. android:layout_width="match_parent"
  283. android:layout_height="wrap_content"
  284. android:layout_marginTop="15dp"
  285. android:gravity="center_vertical"
  286. android:orientation="horizontal">
  287. <TextView
  288. android:layout_width="wrap_content"
  289. android:layout_height="wrap_content"
  290. android:text="发行方"
  291. android:textColor="#999999"
  292. android:textSize="13sp" />
  293. <TextView
  294. android:layout_width="match_parent"
  295. android:layout_height="wrap_content"
  296. android:layout_marginEnd="14dp"
  297. android:gravity="right"
  298. android:text="@{vm.data.auth_name}"
  299. android:textColor="@color/white"
  300. android:textSize="13sp" />
  301. </LinearLayout>
  302. <LinearLayout
  303. android:layout_width="match_parent"
  304. android:layout_height="wrap_content"
  305. android:layout_marginTop="14dp"
  306. android:gravity="center_vertical"
  307. android:orientation="horizontal">
  308. <TextView
  309. android:layout_width="wrap_content"
  310. android:layout_height="wrap_content"
  311. android:text="发行时间"
  312. android:textColor="#999999"
  313. android:textSize="13sp" />
  314. <TextView
  315. android:layout_width="match_parent"
  316. android:layout_height="wrap_content"
  317. android:layout_marginEnd="14dp"
  318. android:gravity="right"
  319. android:text="@{vm.data.sell_time}"
  320. android:textColor="@color/white"
  321. android:textSize="13sp" />
  322. </LinearLayout>
  323. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  324. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  325. android:layout_width="match_parent"
  326. android:layout_height="wrap_content"
  327. android:layout_marginStart="15dp"
  328. android:layout_marginTop="12dp"
  329. android:layout_marginEnd="15dp"
  330. android:orientation="vertical"
  331. android:paddingStart="10dp"
  332. android:paddingTop="10dp"
  333. android:paddingEnd="10dp"
  334. android:paddingBottom="9dp"
  335. app:qmui_backgroundColor="#B3444444"
  336. app:qmui_borderColor="#B3444444"
  337. app:qmui_borderWidth="@dimen/dp_1"
  338. app:qmui_radius="16sp">
  339. <androidx.constraintlayout.widget.ConstraintLayout
  340. android:layout_width="match_parent"
  341. android:layout_height="wrap_content">
  342. <TextView
  343. android:layout_width="wrap_content"
  344. android:layout_height="wrap_content"
  345. android:layout_marginStart="17dp"
  346. android:text="作品简介"
  347. android:textColor="@color/white"
  348. android:textSize="18sp"
  349. android:textStyle="bold"
  350. app:layout_constraintLeft_toLeftOf="parent"
  351. app:layout_constraintTop_toTopOf="parent" />
  352. <ImageView
  353. android:layout_width="22dp"
  354. android:layout_height="23dp"
  355. android:src="@drawable/ct_tags"
  356. app:layout_constraintLeft_toLeftOf="parent"
  357. app:layout_constraintTop_toTopOf="parent" />
  358. </androidx.constraintlayout.widget.ConstraintLayout>
  359. <TextView
  360. android:layout_width="match_parent"
  361. android:layout_height="wrap_content"
  362. android:layout_marginTop="6dp"
  363. android:text="@{vm.data.intro}"
  364. android:textColor="#B5B5B5"
  365. android:textSize="11sp" />
  366. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  367. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  368. android:layout_width="match_parent"
  369. android:layout_height="wrap_content"
  370. android:layout_marginStart="15dp"
  371. android:layout_marginTop="12dp"
  372. android:layout_marginEnd="15dp"
  373. android:orientation="vertical"
  374. android:paddingStart="10dp"
  375. android:paddingTop="10dp"
  376. android:paddingEnd="10dp"
  377. android:paddingBottom="9dp"
  378. app:qmui_backgroundColor="#B3444444"
  379. app:qmui_borderColor="#B3444444"
  380. app:qmui_borderWidth="@dimen/dp_1"
  381. app:qmui_radius="16sp">
  382. <androidx.constraintlayout.widget.ConstraintLayout
  383. android:layout_width="match_parent"
  384. android:layout_height="wrap_content">
  385. <TextView
  386. android:layout_width="wrap_content"
  387. android:layout_height="wrap_content"
  388. android:layout_marginStart="17dp"
  389. android:text="权益说明"
  390. android:textColor="@color/white"
  391. android:textSize="18sp"
  392. android:textStyle="bold"
  393. app:layout_constraintLeft_toLeftOf="parent"
  394. app:layout_constraintTop_toTopOf="parent" />
  395. <ImageView
  396. android:layout_width="22dp"
  397. android:layout_height="23dp"
  398. android:src="@drawable/ct_tags"
  399. app:layout_constraintLeft_toLeftOf="parent"
  400. app:layout_constraintTop_toTopOf="parent" />
  401. </androidx.constraintlayout.widget.ConstraintLayout>
  402. <TextView
  403. android:layout_width="match_parent"
  404. android:layout_height="wrap_content"
  405. android:layout_marginTop="6dp"
  406. android:text="@{vm.data.instructions}"
  407. android:textColor="#B5B5B5"
  408. android:textSize="11sp" />
  409. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  410. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  411. android:layout_width="match_parent"
  412. android:layout_height="wrap_content"
  413. android:layout_marginStart="15dp"
  414. android:layout_marginTop="12dp"
  415. android:layout_marginEnd="15dp"
  416. android:orientation="vertical"
  417. android:paddingStart="10dp"
  418. android:paddingTop="10dp"
  419. android:paddingEnd="10dp"
  420. android:paddingBottom="9dp"
  421. app:qmui_backgroundColor="#B3444444"
  422. app:qmui_borderColor="#B3444444"
  423. app:qmui_borderWidth="@dimen/dp_1"
  424. app:qmui_radius="16sp">
  425. <androidx.constraintlayout.widget.ConstraintLayout
  426. android:layout_width="match_parent"
  427. android:layout_height="wrap_content">
  428. <TextView
  429. android:layout_width="wrap_content"
  430. android:layout_height="wrap_content"
  431. android:layout_marginStart="17dp"
  432. android:text="购买须知"
  433. android:textColor="@color/white"
  434. android:textSize="18sp"
  435. android:textStyle="bold"
  436. app:layout_constraintLeft_toLeftOf="parent"
  437. app:layout_constraintTop_toTopOf="parent" />
  438. <ImageView
  439. android:layout_width="22dp"
  440. android:layout_height="23dp"
  441. android:src="@drawable/ct_tags"
  442. app:layout_constraintLeft_toLeftOf="parent"
  443. app:layout_constraintTop_toTopOf="parent" />
  444. </androidx.constraintlayout.widget.ConstraintLayout>
  445. <TextView
  446. android:layout_width="match_parent"
  447. android:layout_height="wrap_content"
  448. android:layout_marginTop="6dp"
  449. android:text="@{vm.data.buy_notice}"
  450. android:textColor="#B5B5B5"
  451. android:textSize="11sp" />
  452. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  453. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  454. android:layout_width="match_parent"
  455. android:layout_height="wrap_content"
  456. android:layout_marginStart="15dp"
  457. android:layout_marginTop="12dp"
  458. android:layout_marginEnd="15dp"
  459. android:orientation="vertical"
  460. android:paddingStart="10dp"
  461. android:paddingTop="10dp"
  462. android:paddingEnd="10dp"
  463. android:paddingBottom="9dp"
  464. app:qmui_backgroundColor="#B3444444"
  465. app:qmui_borderColor="#B3444444"
  466. app:qmui_borderWidth="@dimen/dp_1"
  467. app:qmui_radius="16sp">
  468. <androidx.constraintlayout.widget.ConstraintLayout
  469. android:layout_width="match_parent"
  470. android:layout_height="wrap_content">
  471. <TextView
  472. android:layout_width="wrap_content"
  473. android:layout_height="wrap_content"
  474. android:layout_marginStart="17dp"
  475. android:text="温馨提示"
  476. android:textColor="@color/white"
  477. android:textSize="18sp"
  478. android:textStyle="bold"
  479. app:layout_constraintLeft_toLeftOf="parent"
  480. app:layout_constraintTop_toTopOf="parent" />
  481. <ImageView
  482. android:layout_width="22dp"
  483. android:layout_height="23dp"
  484. android:src="@drawable/ct_tags"
  485. app:layout_constraintLeft_toLeftOf="parent"
  486. app:layout_constraintTop_toTopOf="parent" />
  487. </androidx.constraintlayout.widget.ConstraintLayout>
  488. <TextView
  489. android:layout_width="match_parent"
  490. android:layout_height="wrap_content"
  491. android:layout_marginTop="6dp"
  492. android:text="@{vm.data.warm_prompt}"
  493. android:textColor="#B5B5B5"
  494. android:textSize="11sp" />
  495. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  496. <View
  497. android:layout_width="match_parent"
  498. android:layout_height="30dp"/>
  499. </LinearLayout>
  500. </com.hdl.xl.view.MyScrollView>
  501. <!-- 滑动时候显示的 -->
  502. <!-- 已售罄-->
  503. <LinearLayout
  504. android:layout_width="match_parent"
  505. android:layout_height="91dp"
  506. android:layout_marginBottom="10dp"
  507. android:gravity="center_vertical"
  508. android:visibility="@{vm.data.state==3?View.VISIBLE:View.GONE}">
  509. <TextView
  510. android:layout_width="0dp"
  511. android:layout_height="wrap_content"
  512. android:layout_marginTop="14dp"
  513. android:layout_marginStart="16dp"
  514. android:layout_weight="1"
  515. android:text="@{`¥`+vm.data.price}"
  516. android:textColor="@color/white"
  517. android:textSize="30sp" />
  518. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
  519. android:layout_width="180dp"
  520. android:layout_height="40dp"
  521. android:layout_marginStart="25dp"
  522. android:layout_marginEnd="25dp"
  523. android:text="已售罄"
  524. android:textColor="@color/white"
  525. android:textSize="16sp"
  526. android:visibility="@{vm.data.state==3?View.VISIBLE:View.GONE}"
  527. app:qmui_backgroundColor="#666666"
  528. app:qmui_borderColor="@color/translucent"
  529. app:qmui_radius="14dp" />
  530. </LinearLayout>
  531. <!-- 立即购买-->
  532. <LinearLayout
  533. android:layout_width="match_parent"
  534. android:layout_height="91dp"
  535. android:layout_marginBottom="10dp"
  536. android:orientation="horizontal"
  537. android:visibility="@{vm.data.state==1?View.VISIBLE:View.GONE}"
  538. tools:visibility="visible">
  539. <TextView
  540. android:layout_width="0dp"
  541. android:layout_height="wrap_content"
  542. android:layout_marginTop="14dp"
  543. android:layout_marginStart="16dp"
  544. android:layout_weight="1"
  545. android:text="@{`¥`+vm.data.price}"
  546. android:textColor="@color/white"
  547. android:textSize="30sp" />
  548. <TextView
  549. android:id="@+id/but_buy"
  550. android:layout_width="180dp"
  551. android:layout_height="40dp"
  552. android:layout_marginTop="8dp"
  553. android:layout_marginEnd="25dp"
  554. android:background="@drawable/bg_logo_but"
  555. android:gravity="center"
  556. android:text="立即购买"
  557. android:textColor="#000000"
  558. android:textSize="16sp" />
  559. </LinearLayout>
  560. <!-- 设置购买提醒 -->
  561. <LinearLayout
  562. android:layout_width="match_parent"
  563. android:orientation="vertical"
  564. android:visibility="@{vm.data.state==2?View.VISIBLE:View.GONE}"
  565. android:layout_height="wrap_content">
  566. <LinearLayout
  567. android:layout_width="match_parent"
  568. android:layout_height="91dp"
  569. android:layout_marginBottom="10dp"
  570. android:visibility="@{vm.is_remind?View.GONE:View.VISIBLE}"
  571. android:orientation="horizontal"
  572. tools:visibility="visible">
  573. <TextView
  574. android:layout_width="0dp"
  575. android:layout_height="wrap_content"
  576. android:layout_marginTop="14dp"
  577. android:layout_marginStart="16dp"
  578. android:layout_weight="1"
  579. android:text="@{`¥`+vm.data.price}"
  580. android:textColor="@color/white"
  581. android:textSize="30sp" />
  582. <LinearLayout
  583. android:layout_width="180dp"
  584. android:layout_height="40dp"
  585. android:layout_marginTop="8dp"
  586. android:layout_marginEnd="25dp"
  587. android:onClick="@{v->vm.toBuyTime()}"
  588. android:background="@drawable/bg_logo_but"
  589. android:gravity="center"
  590. android:orientation="vertical">
  591. <TextView
  592. android:layout_width="wrap_content"
  593. android:layout_height="wrap_content"
  594. android:text="设置购买提醒"
  595. android:textColor="#000000"
  596. android:textSize="16sp" />
  597. <TextView
  598. android:layout_width="wrap_content"
  599. android:layout_height="wrap_content"
  600. android:text="@{vm.data.sell_time}"
  601. android:textColor="#000000"
  602. android:textSize="12sp" />
  603. </LinearLayout>
  604. </LinearLayout>
  605. <LinearLayout
  606. android:layout_width="match_parent"
  607. android:layout_height="91dp"
  608. android:layout_marginBottom="10dp"
  609. android:orientation="horizontal"
  610. android:visibility="@{vm.is_remind?View.VISIBLE:View.GONE}"
  611. >
  612. <TextView
  613. android:layout_width="0dp"
  614. android:layout_height="wrap_content"
  615. android:layout_marginTop="14dp"
  616. android:layout_marginStart="16dp"
  617. android:layout_weight="1"
  618. android:text="@{`¥`+vm.data.price}"
  619. android:textColor="@color/white"
  620. android:textSize="30sp" />
  621. <LinearLayout
  622. android:layout_width="180dp"
  623. android:layout_height="40dp"
  624. android:layout_marginTop="8dp"
  625. android:layout_marginEnd="25dp"
  626. android:onClick="@{v->vm.toBuyTime()}"
  627. android:background="@drawable/bg_logo_but_on"
  628. android:gravity="center"
  629. android:orientation="vertical">
  630. <TextView
  631. android:layout_width="wrap_content"
  632. android:layout_height="wrap_content"
  633. android:text="设置购买提醒"
  634. android:textColor="#DFDFDF"
  635. android:textSize="16sp" />
  636. <TextView
  637. android:layout_width="wrap_content"
  638. android:layout_height="wrap_content"
  639. android:text="@{vm.data.sell_time}"
  640. android:textColor="#DFDFDF"
  641. android:textSize="12sp" />
  642. </LinearLayout>
  643. </LinearLayout>
  644. </LinearLayout>
  645. </LinearLayout>
  646. </layout>