|
@@ -0,0 +1,266 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ >
|
|
|
+
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <import type="android.view.View" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="item"
|
|
|
+ type="com.zswc.creativity.model.CollectionList" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.zswc.creativity.vmodel.CollectionVModel" />
|
|
|
+
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.layout.QMUILinearLayout
|
|
|
+ android:id="@+id/ll_center"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="345dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:qmui_radius="12dp"
|
|
|
+ app:qmui_shadowAlpha="0.56"
|
|
|
+ app:qmui_shadowElevation="7dp">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+ <!-- app:url="@{item.cover}"-->
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/img_bg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:scaleType="centerCrop"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
+ android:src="@drawable/bg_need_error"
|
|
|
+ />
|
|
|
+
|
|
|
+<!-- <com.qmuiteam.qmui.widget.QMUIRadiusImageView-->
|
|
|
+<!-- android:id="@+id/img_bg"-->
|
|
|
+<!-- android:layout_width="match_parent"-->
|
|
|
+<!-- android:layout_height="match_parent"-->
|
|
|
+<!-- android:scaleType="centerCrop"-->
|
|
|
+<!-- android:src="@drawable/bg_need_error"-->
|
|
|
+<!-- app:qmui_border_color="@color/translucent"-->
|
|
|
+<!-- app:qmui_corner_radius="20dp"-->
|
|
|
+<!-- app:url="@{item.cover}"-->
|
|
|
+<!-- />-->
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:layout_marginBottom="10dp"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingTop="12dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:paddingBottom="10dp"
|
|
|
+ app:qmui_backgroundColor="#66000000"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="14dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:hint="潮玩设计 | 闹仔NOWKNOW"
|
|
|
+ android:text="@{item.name}"
|
|
|
+ android:textColor="#FFFFFF"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="6dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="#38D3D3"
|
|
|
+ android:paddingStart="9dp"
|
|
|
+ android:paddingTop="2dp"
|
|
|
+ android:paddingEnd="9dp"
|
|
|
+ android:paddingBottom="2dp"
|
|
|
+ android:text="限量"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="11sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/bg_kuang_blue"
|
|
|
+ android:hint="100份"
|
|
|
+ android:paddingStart="9dp"
|
|
|
+ android:paddingTop="2dp"
|
|
|
+ android:paddingEnd="9dp"
|
|
|
+ android:paddingBottom="2dp"
|
|
|
+ android:text="@{item.inventory+`份`}"
|
|
|
+ android:textColor="#54D7E9"
|
|
|
+ android:textColorHint="#54D7E9"
|
|
|
+ android:textSize="11sp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.QMUIRadiusImageView
|
|
|
+ android:layout_width="18dp"
|
|
|
+ android:layout_height="18dp"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:src="@drawable/bg_need_error"
|
|
|
+ app:qmui_border_color="@color/translucent"
|
|
|
+ app:qmui_is_circle="true"
|
|
|
+ app:url="@{item.authImg}" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@{item.authName}"
|
|
|
+ android:textColor="#D2D2D2"
|
|
|
+ android:textSize="12sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="¥"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="18sp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@{item.price}"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="24sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:id="@+id/ll_one"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:layout_marginTop="22dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="11dp"
|
|
|
+ app:qmui_backgroundColor="#CC000000"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="12dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="12dp"
|
|
|
+ android:layout_height="12dp"
|
|
|
+ android:layout_marginEnd="6dp"
|
|
|
+ android:src="@drawable/ct_time_ing" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="#FFF488"
|
|
|
+ android:text="热卖中"
|
|
|
+ android:textSize="10sp" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:id="@+id/ll_two"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:layout_marginTop="22dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="11dp"
|
|
|
+ app:qmui_backgroundColor="#CC000000"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="12dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="12dp"
|
|
|
+ android:layout_height="12dp"
|
|
|
+ android:layout_marginEnd="6dp"
|
|
|
+ android:src="@drawable/ct_time" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_state"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="#62FFF0"
|
|
|
+ android:textSize="10sp" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:id="@+id/ll_three"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:layout_marginTop="22dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="11dp"
|
|
|
+ app:qmui_backgroundColor="#CC000000"
|
|
|
+ app:qmui_borderColor="@color/translucent"
|
|
|
+ app:qmui_radius="12dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="12dp"
|
|
|
+ android:layout_height="12dp"
|
|
|
+ android:layout_marginEnd="6dp"
|
|
|
+ android:src="@drawable/ct_time_stop" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:text="已售罄"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="#999999"
|
|
|
+ android:textSize="10sp" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.layout.QMUILinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="14dp" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+</layout>
|