123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?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"
- android:id="@+id/trade_details_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:clickable="true"
- android:foreground="?android:attr/selectableItemBackground"
- android:orientation="vertical">
- <android.support.design.widget.AppBarLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <com.sheishuo.app.common.views.BaseToolbar
- android:id="@id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="@dimen/action_bar_height"
- android:title="详情"/>
- </android.support.design.widget.AppBarLayout>
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/color_background">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <android.support.constraint.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="8dp"
- android:background="@color/white">
- <com.netease.nim.uikit.common.ui.imageview.HeadImageView
- android:id="@+id/trade_details_avatar"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_marginLeft="16dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="16dp"
- android:src="@drawable/nim_avatar_default"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/trade_details_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="8dp"
- android:layout_marginStart="8dp"
- android:layout_marginTop="16dp"
- android:text="用户名"
- app:layout_constraintLeft_toRightOf="@+id/trade_details_avatar"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/trade_details_location"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:text="发布地点"
- app:layout_constraintLeft_toLeftOf="@+id/trade_details_name"
- app:layout_constraintTop_toBottomOf="@+id/trade_details_name" />
- <com.sheishuo.app.common.views.PartlyHighLightTextView
- android:id="@+id/trade_details_content"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginEnd="16dp"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:layout_marginStart="16dp"
- android:layout_marginTop="16dp"
- 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_details_avatar" />
- <LinearLayout
- android:id="@+id/trade_details_img_layout"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:orientation="vertical"
- app:layout_constraintLeft_toLeftOf="@+id/trade_details_content"
- app:layout_constraintRight_toRightOf="@+id/trade_details_content"
- app:layout_constraintTop_toBottomOf="@+id/trade_details_content" />
- <TextView
- android:id="@+id/trade_details_date"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="8dp"
- android:layout_marginRight="8dp"
- android:layout_marginTop="8dp"
- android:padding="4dp"
- android:text="时间"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/trade_details_read_num"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:padding="4dp"
- android:text="阅读量123"
- android:visibility="gone"
- android:textColor="@color/grey_light_light"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/trade_details_date" />
- <TextView
- android:id="@+id/trade_details_priority"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="10dp"
- android:layout_marginRight="10dp"
- android:background="@drawable/style_rounded_corner_editext"
- android:padding="4dp"
- android:text="置顶x123"
- android:textColor="@color/green_4DC0A4"
- app:layout_constraintRight_toLeftOf="@+id/trade_details_read_num"
- app:layout_constraintTop_toTopOf="@+id/trade_details_read_num" />
- </android.support.constraint.ConstraintLayout>
- </LinearLayout>
- </ScrollView>
- </LinearLayout>
|