activity_all_collect_details.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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.zswc.creativity.vmodel.AllCollectDetailsVModel" />
  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/white"
  16. android:orientation="vertical">
  17. <FrameLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="0dp"
  20. android:layout_weight="1">
  21. <com.zswc.creativity.view.MyScrollView
  22. android:id="@+id/scroll"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:scrollbars="none">
  26. <FrameLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="match_parent"
  29. android:orientation="vertical">
  30. <FrameLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content">
  33. <ImageView
  34. android:id="@+id/image_gif_view"
  35. android:layout_width="match_parent"
  36. android:layout_height="360dp"
  37. android:src="@drawable/bg_need_error" />
  38. <ImageView
  39. android:id="@+id/image_view"
  40. android:layout_width="match_parent"
  41. android:layout_height="360dp"
  42. android:background="@drawable/bg_need_error"
  43. android:scaleType="centerCrop" />
  44. <TextView
  45. android:layout_width="0dp"
  46. android:layout_height="wrap_content"
  47. android:layout_marginStart="12dp"
  48. android:layout_marginEnd="14dp"
  49. android:layout_weight="1"
  50. android:gravity="right"
  51. android:text="@{vm.data.create_at}"
  52. android:textColor="#333333"
  53. android:textSize="12sp" />
  54. </FrameLayout>
  55. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:layout_marginTop="336dp"
  59. android:orientation="vertical"
  60. app:qmui_backgroundColor="@color/white"
  61. app:qmui_borderColor="@color/translucent"
  62. app:qmui_radius="16dp">
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_gravity="center_horizontal"
  67. android:layout_marginTop="8dp"
  68. android:text="@{vm.data.name}"
  69. android:textColor="#141414"
  70. android:textSize="22sp"
  71. android:textStyle="bold" />
  72. <LinearLayout
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_gravity="center_horizontal"
  76. android:layout_marginTop="5dp">
  77. <ImageView
  78. android:layout_width="30dp"
  79. android:layout_height="18dp"
  80. android:src="@drawable/ct_collect" />
  81. <TextView
  82. android:layout_width="wrap_content"
  83. android:layout_height="18dp"
  84. android:background="@drawable/bg_kuang_blue"
  85. android:hint="100份"
  86. android:paddingStart="9dp"
  87. android:paddingTop="2dp"
  88. android:paddingEnd="9dp"
  89. android:paddingBottom="2dp"
  90. android:text="@{vm.data.tag}"
  91. android:textColor="#54D7E9"
  92. android:textColorHint="#54D7E9"
  93. android:textSize="@dimen/dp_11" />
  94. </LinearLayout>
  95. <LinearLayout
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:layout_marginStart="15dp"
  99. android:layout_marginTop="11dp"
  100. android:gravity="center_vertical"
  101. android:orientation="horizontal">
  102. <TextView
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:text="认证"
  106. android:textColor="#222222"
  107. android:textSize="16sp"
  108. android:textStyle="bold" />
  109. <TextView
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:shadowColor="#38D3D3"
  113. android:shadowDx="11"
  114. android:shadowDy="22"
  115. android:shadowRadius="2"
  116. android:text="信息"
  117. android:textColor="#222222"
  118. android:textSize="16sp"
  119. android:textStyle="bold" />
  120. </LinearLayout>
  121. <LinearLayout
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content"
  124. android:layout_marginStart="15dp"
  125. android:layout_marginTop="8dp"
  126. android:gravity="center_vertical"
  127. android:orientation="horizontal">
  128. <TextView
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:text="区块链"
  132. android:textColor="#333333"
  133. android:textSize="12sp" />
  134. <TextView
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:layout_marginEnd="14dp"
  138. android:gravity="right"
  139. android:text="蚂蚁链LASH"
  140. android:textColor="#333333"
  141. android:textSize="12sp" />
  142. </LinearLayout>
  143. <LinearLayout
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:layout_marginStart="15dp"
  147. android:layout_marginTop="8dp"
  148. android:gravity="center_vertical"
  149. android:orientation="horizontal">
  150. <TextView
  151. android:layout_width="wrap_content"
  152. android:layout_height="wrap_content"
  153. android:text="合约地址"
  154. android:textColor="#333333"
  155. android:textSize="12sp" />
  156. <TextView
  157. android:layout_width="0dp"
  158. android:layout_height="wrap_content"
  159. android:layout_marginStart="12dp"
  160. android:layout_marginEnd="6dp"
  161. android:layout_weight="1"
  162. android:ellipsize="middle"
  163. android:gravity="right"
  164. android:singleLine="true"
  165. android:text="@{vm.data.collectors_hash}"
  166. android:textColor="#333333"
  167. android:textSize="12sp" />
  168. <ImageView
  169. android:layout_width="17dp"
  170. android:layout_height="17dp"
  171. android:layout_marginEnd="14dp"
  172. android:onClick="@{v->vm.toCopy(vm.data.collectors_hash)}"
  173. android:src="@drawable/ct_copy" />
  174. </LinearLayout>
  175. <LinearLayout
  176. android:layout_width="wrap_content"
  177. android:layout_height="wrap_content"
  178. android:layout_marginStart="15dp"
  179. android:layout_marginTop="11dp"
  180. android:gravity="center_vertical"
  181. android:orientation="horizontal">
  182. <TextView
  183. android:layout_width="wrap_content"
  184. android:layout_height="wrap_content"
  185. android:text="卖家"
  186. android:textColor="#222222"
  187. android:textSize="16sp"
  188. android:textStyle="bold" />
  189. <TextView
  190. android:layout_width="wrap_content"
  191. android:layout_height="wrap_content"
  192. android:shadowColor="#38D3D3"
  193. android:shadowDx="11"
  194. android:shadowDy="22"
  195. android:shadowRadius="2"
  196. android:text="信息"
  197. android:textColor="#222222"
  198. android:textSize="16sp"
  199. android:textStyle="bold" />
  200. </LinearLayout>
  201. <LinearLayout
  202. android:layout_width="match_parent"
  203. android:layout_height="wrap_content"
  204. android:layout_marginStart="15dp"
  205. android:layout_marginTop="8dp"
  206. android:gravity="center_vertical"
  207. android:orientation="horizontal">
  208. <TextView
  209. android:layout_width="wrap_content"
  210. android:layout_height="wrap_content"
  211. android:text="收藏者"
  212. android:textColor="#333333"
  213. android:textSize="12sp" />
  214. <TextView
  215. android:layout_width="match_parent"
  216. android:layout_height="wrap_content"
  217. android:layout_marginEnd="14dp"
  218. android:gravity="right"
  219. android:text="@{vm.data.collectors_name}"
  220. android:textColor="#333333"
  221. android:textSize="12sp" />
  222. </LinearLayout>
  223. <LinearLayout
  224. android:layout_width="match_parent"
  225. android:layout_height="wrap_content"
  226. android:layout_marginStart="15dp"
  227. android:layout_marginTop="8dp"
  228. android:gravity="center_vertical"
  229. android:orientation="horizontal">
  230. <TextView
  231. android:layout_width="wrap_content"
  232. android:layout_height="wrap_content"
  233. android:text="收藏时间"
  234. android:textColor="#333333"
  235. android:textSize="12sp" />
  236. <TextView
  237. android:layout_width="match_parent"
  238. android:layout_height="wrap_content"
  239. android:layout_marginEnd="14dp"
  240. android:gravity="right"
  241. android:text="@{vm.data.create_at}"
  242. android:textColor="#333333"
  243. android:textSize="12sp" />
  244. </LinearLayout>
  245. <LinearLayout
  246. android:layout_width="wrap_content"
  247. android:layout_height="wrap_content"
  248. android:layout_marginStart="15dp"
  249. android:layout_marginTop="11dp"
  250. android:gravity="center_vertical"
  251. android:orientation="horizontal">
  252. <TextView
  253. android:layout_width="wrap_content"
  254. android:layout_height="wrap_content"
  255. android:text="藏品"
  256. android:textColor="#222222"
  257. android:textSize="16sp"
  258. android:textStyle="bold" />
  259. <TextView
  260. android:layout_width="wrap_content"
  261. android:layout_height="wrap_content"
  262. android:shadowColor="#38D3D3"
  263. android:shadowDx="11"
  264. android:shadowDy="22"
  265. android:shadowRadius="2"
  266. android:text="描述"
  267. android:textColor="#222222"
  268. android:textSize="16sp"
  269. android:textStyle="bold" />
  270. </LinearLayout>
  271. <androidx.appcompat.widget.AppCompatImageView
  272. android:id="@+id/img_deatils"
  273. android:layout_width="match_parent"
  274. android:layout_height="wrap_content"
  275. android:layout_marginStart="15dp"
  276. android:layout_marginTop="10dp"
  277. android:layout_marginEnd="15dp"
  278. android:adjustViewBounds="true"
  279. android:scaleType="fitXY"
  280. android:src="@drawable/bg_need_error" />
  281. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  282. android:layout_width="match_parent"
  283. android:layout_height="wrap_content"
  284. android:layout_marginTop="16dp"
  285. android:orientation="vertical"
  286. android:paddingStart="10dp"
  287. android:paddingTop="10dp"
  288. android:paddingEnd="10dp"
  289. android:paddingBottom="6dp"
  290. app:qmui_backgroundColor="#F1F9F9"
  291. app:qmui_borderColor="@color/translucent"
  292. app:qmui_radius="8dp">
  293. <LinearLayout
  294. android:layout_width="wrap_content"
  295. android:layout_height="wrap_content"
  296. android:gravity="center_vertical"
  297. android:orientation="horizontal">
  298. <TextView
  299. android:layout_width="wrap_content"
  300. android:layout_height="wrap_content"
  301. android:text="购买"
  302. android:textColor="#222222"
  303. android:textSize="16sp"
  304. android:textStyle="bold" />
  305. <TextView
  306. android:layout_width="wrap_content"
  307. android:layout_height="wrap_content"
  308. android:shadowColor="#38D3D3"
  309. android:shadowDx="11"
  310. android:shadowDy="22"
  311. android:shadowRadius="2"
  312. android:text="须知"
  313. android:textColor="#222222"
  314. android:textSize="16sp"
  315. android:textStyle="bold" />
  316. </LinearLayout>
  317. <TextView
  318. android:layout_width="match_parent"
  319. android:layout_height="wrap_content"
  320. android:layout_marginTop="10dp"
  321. android:text="@{vm.data.pro_info.buy_notice}"
  322. android:textColor="#B5B5B5"
  323. android:textSize="11sp" />
  324. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  325. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
  326. android:layout_width="match_parent"
  327. android:layout_height="wrap_content"
  328. android:layout_marginTop="16dp"
  329. android:orientation="vertical"
  330. android:paddingStart="10dp"
  331. android:paddingTop="10dp"
  332. android:paddingEnd="10dp"
  333. android:paddingBottom="6dp"
  334. app:qmui_backgroundColor="#F1F9F9"
  335. app:qmui_borderColor="@color/translucent"
  336. app:qmui_radius="8dp">
  337. <LinearLayout
  338. android:layout_width="wrap_content"
  339. android:layout_height="wrap_content"
  340. android:gravity="center_vertical"
  341. android:orientation="horizontal">
  342. <TextView
  343. android:layout_width="wrap_content"
  344. android:layout_height="wrap_content"
  345. android:text="温馨"
  346. android:textColor="#222222"
  347. android:textSize="16sp"
  348. android:textStyle="bold" />
  349. <TextView
  350. android:layout_width="wrap_content"
  351. android:layout_height="wrap_content"
  352. android:shadowColor="#38D3D3"
  353. android:shadowDx="11"
  354. android:shadowDy="22"
  355. android:shadowRadius="2"
  356. android:text="提示"
  357. android:textColor="#222222"
  358. android:textSize="16sp"
  359. android:textStyle="bold" />
  360. </LinearLayout>
  361. <TextView
  362. android:layout_width="match_parent"
  363. android:layout_height="wrap_content"
  364. android:layout_marginTop="10dp"
  365. android:text="@{vm.data.pro_info.warm_prompt}"
  366. android:textColor="#B5B5B5"
  367. android:textSize="11sp" />
  368. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  369. <View
  370. android:layout_width="match_parent"
  371. android:layout_height="@dimen/dp_20" />
  372. </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
  373. <LinearLayout
  374. android:id="@+id/ll_show_one"
  375. android:layout_width="match_parent"
  376. android:layout_height="wrap_content"
  377. android:orientation="vertical">
  378. <LinearLayout
  379. android:layout_width="match_parent"
  380. android:layout_height="wrap_content"
  381. android:orientation="vertical">
  382. <TextView
  383. android:id="@+id/tv"
  384. android:layout_width="wrap_content"
  385. android:layout_height="wrap_content"
  386. android:visibility="gone" />
  387. </LinearLayout>
  388. <LinearLayout
  389. android:layout_width="match_parent"
  390. android:layout_height="wrap_content"
  391. android:orientation="horizontal"
  392. android:paddingTop="10dp"
  393. android:paddingBottom="10dp">
  394. <ImageView
  395. android:layout_width="28dp"
  396. android:layout_height="28dp"
  397. android:layout_marginStart="16dp"
  398. android:onClick="@{v->vm.toClose()}"
  399. android:src="@drawable/ct_tib_back" />
  400. <View
  401. android:layout_width="0dp"
  402. android:layout_height="match_parent"
  403. android:layout_weight="1" />
  404. </LinearLayout>
  405. </LinearLayout>
  406. </FrameLayout>
  407. </com.zswc.creativity.view.MyScrollView>
  408. <!-- 滑动时候显示的 -->
  409. <LinearLayout
  410. android:id="@+id/ll_show_two"
  411. android:layout_width="match_parent"
  412. android:layout_height="wrap_content"
  413. android:orientation="vertical"
  414. android:visibility="gone">
  415. <LinearLayout
  416. android:layout_width="match_parent"
  417. android:layout_height="wrap_content"
  418. android:orientation="vertical">
  419. <TextView
  420. android:id="@+id/tv_two"
  421. android:layout_width="wrap_content"
  422. android:layout_height="wrap_content"
  423. android:visibility="gone" />
  424. </LinearLayout>
  425. <LinearLayout
  426. android:layout_width="match_parent"
  427. android:layout_height="wrap_content"
  428. android:orientation="horizontal"
  429. android:paddingTop="10dp"
  430. android:paddingBottom="10dp">
  431. <ImageView
  432. android:layout_width="38dp"
  433. android:layout_height="20dp"
  434. android:onClick="@{v->vm.toClose()}"
  435. android:paddingLeft="20dp"
  436. android:src="@drawable/ic_back_black" />
  437. <TextView
  438. android:id="@+id/tv_show_title"
  439. android:layout_width="0dp"
  440. android:layout_height="wrap_content"
  441. android:layout_marginEnd="14dp"
  442. android:layout_weight="1"
  443. android:gravity="center_horizontal"
  444. android:text="臧品详情"
  445. android:textColor="@color/text_title"
  446. android:textSize="18sp"
  447. android:textStyle="bold" />
  448. <ImageView
  449. android:layout_width="28dp"
  450. android:layout_height="20dp"
  451. android:layout_marginEnd="16dp"
  452. android:src="@drawable/ct_share"
  453. android:visibility="invisible" />
  454. </LinearLayout>
  455. </LinearLayout>
  456. </FrameLayout>
  457. <LinearLayout
  458. android:layout_width="match_parent"
  459. android:layout_height="50dp"
  460. android:gravity="center"
  461. android:orientation="horizontal">
  462. <TextView
  463. android:layout_width="0dp"
  464. android:layout_height="wrap_content"
  465. android:layout_gravity="center_vertical"
  466. android:layout_marginStart="16dp"
  467. android:layout_weight="1"
  468. android:hint="¥29.9"
  469. android:text="¥29.9"
  470. android:textColor="@color/text_title"
  471. android:textSize="26sp" />
  472. <View
  473. android:layout_width="0dp"
  474. android:layout_height="match_parent"
  475. android:layout_weight="1" />
  476. <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
  477. android:id="@+id/but_buy"
  478. android:layout_width="180dp"
  479. android:layout_height="36dp"
  480. android:layout_marginEnd="25dp"
  481. android:text="立即购买"
  482. android:textColor="@color/white"
  483. android:textSize="16sp"
  484. app:qmui_backgroundColor="#38D3D3"
  485. app:qmui_borderColor="@color/translucent"
  486. app:qmui_radius="4dp" />
  487. </LinearLayout>
  488. </LinearLayout>
  489. </layout>