|
@@ -1,6 +1,98 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- android:orientation="vertical" android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="8dp">
|
|
|
|
|
|
-</LinearLayout>
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
|
|
+ android:id="@+id/trade_list_item_avatar"
|
|
|
+ android:layout_width="48dp"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ android:src="@drawable/logo"
|
|
|
+ android:layout_marginStart="16dp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/trade_list_item_follow_img"
|
|
|
+ android:layout_width="48dp"
|
|
|
+ android:layout_height="48dp" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="用户名"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/trade_list_item_avatar"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:layout_marginStart="8dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_date"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:text="发布时间"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/trade_list_item_name"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_name" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="16dp"
|
|
|
+ android:layout_marginRight="16dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:text="这里是交易内容详情这里是交易内容详情这里是交易内容详情这里是交易内容详情
|
|
|
+ 这里是交易内容详情这里是交易内容详情这里是交易内容详情这里是交易内容详情"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_avatar"
|
|
|
+ app:layout_constraintHorizontal_bias="1.0" />
|
|
|
+
|
|
|
+ <com.sheishuo.app.common.views.ImgGridView
|
|
|
+ android:id="@+id/trade_list_item_imgs_gridview"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:numColumns="2"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/trade_list_item_content"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_content"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/trade_list_item_content"
|
|
|
+ app:layout_constraintHorizontal_bias="0.0" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_priority"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="置顶101"
|
|
|
+ android:background="@drawable/style_rounded_corner_editext"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:layout_marginLeft="0dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/trade_list_item_imgs_gridview"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_imgs_gridview" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_views"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="阅读103"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:layout_marginRight="0dp"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/trade_list_item_imgs_gridview"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_imgs_gridview" />
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+</android.support.v7.widget.CardView>
|