|
@@ -1,6 +1,7 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical"
|
|
@@ -11,110 +12,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <android.support.constraint.ConstraintLayout
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:padding="8dp">
|
|
|
-
|
|
|
- <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="32dp"
|
|
|
- android:layout_height="32dp"
|
|
|
- android:src="@drawable/trade_unfollowed"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- android:layout_marginTop="16dp"
|
|
|
- android:layout_marginRight="16dp"
|
|
|
- app:layout_constraintRight_toRightOf="parent" />
|
|
|
-
|
|
|
- <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:orientation="vertical">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
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" />
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="10dp">
|
|
|
+
|
|
|
+ <com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
|
|
+ android:id="@+id/trade_list_item_avatar"
|
|
|
+ android:layout_width="48dp"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:src="@drawable/logo" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="left"
|
|
|
+ android:layout_marginLeft="54dp"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_name"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="用户名"
|
|
|
+ android:textColor="@color/blue"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/trade_list_item_avatar"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_date"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:text="发布时间"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/trade_list_item_name"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_name" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="right"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/trade_list_item_follow_img"
|
|
|
+ android:layout_width="24dp"
|
|
|
+ android:layout_height="24dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:src="@drawable/trade_unfollowed"
|
|
|
+ android:visibility="visible" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_follow_txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="关注"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:visibility="visible" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_modify"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:text="修改"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
|
|
|
<com.sheishuo.app.common.views.PartlyHighLightTextView
|
|
|
android:id="@+id/trade_list_item_content"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
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:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
android:text="这里是交易内容详情这里是交易内容详情这里是交易内容详情这里是交易内容详情
|
|
|
这里是交易内容详情这里是交易内容详情这里是交易内容详情这里是交易内容详情"
|
|
|
+ app:highlight_color="@color/green_4DC0A4"
|
|
|
+ app:hightlight_str=""
|
|
|
+ app:layout_constraintHorizontal_bias="1.0"
|
|
|
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"
|
|
|
- app:hightlight_str=""
|
|
|
- app:highlight_color="@color/green_4DC0A4"
|
|
|
- />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_avatar" />
|
|
|
|
|
|
<com.sheishuo.app.common.views.ImgGridView
|
|
|
android:id="@+id/trade_list_item_imgs_gridview"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:numColumns="2"
|
|
|
+ android:paddingBottom="5dp"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ android:paddingTop="5dp"
|
|
|
+ android:scrollbarDefaultDelayBeforeFade="0"
|
|
|
+ app:layout_constraintHorizontal_bias="0.0"
|
|
|
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"
|
|
|
- android:scrollbarDefaultDelayBeforeFade="0"
|
|
|
- android:padding="16dp"/>
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_content" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/trade_list_item_priority"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="置顶101"
|
|
|
- android:textColor="@color/green_4DC0A4"
|
|
|
- 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"
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="阅读103"
|
|
|
- android:padding="4dp"
|
|
|
- android:visibility="gone"
|
|
|
- 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:paddingBottom="5dp"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ android:paddingTop="5dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_priority"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/style_rounded_corner_editext"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ android:paddingTop="4dp"
|
|
|
+ android:text="置顶101"
|
|
|
+ android:textColor="@color/green_4DC0A4"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/trade_list_item_imgs_gridview"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_imgs_gridview" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:gravity="right"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_delete"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:text="删除" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_list_item_views"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="0dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:padding="4dp"
|
|
|
+ android:text="阅读103"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/trade_list_item_imgs_gridview"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_list_item_imgs_gridview" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<View
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="1dp"
|
|
|
- android:background="@color/grey_light"/>
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:background="@color/grey_light" />
|
|
|
</LinearLayout>
|