123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?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"
- android:clickable="true"
- android:foreground="?android:attr/selectableItemBackground"
- android:id="@+id/trade_list_item_layout"
- android:background="@color/white">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- 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="match_parent"
- android:layout_height="wrap_content"
- 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" />
- <com.sheishuo.app.common.views.ImgGridView
- android:id="@+id/trade_list_item_imgs_gridview"
- 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_constraintRight_toRightOf="@+id/trade_list_item_content"
- app:layout_constraintTop_toBottomOf="@+id/trade_list_item_content" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- 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:layout_marginTop="10dp"
- android:background="@color/grey_light" />
- </LinearLayout>
|