|
@@ -0,0 +1,122 @@
|
|
|
+<?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="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.sheishuo.app.common.views.BaseToolbar
|
|
|
+ android:id="@+id/toolbar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ android:title="详情" />
|
|
|
+ <ScrollView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <android.support.constraint.ConstraintLayout
|
|
|
+ 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_detail_avatar"
|
|
|
+ android:layout_width="48dp"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:src="@drawable/ic_add_friends"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_detail_username"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="15dp"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="0dp"
|
|
|
+ android:text="用户名"
|
|
|
+ android:textSize="16sp"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/trade_detail_avatar"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/trade_detail_avatar" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_detail_location"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="地理位置"
|
|
|
+ android:textColor="@color/grey_light"
|
|
|
+ android:textSize="14dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/trade_detail_username"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/trade_detail_username"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_detail_username" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_detail_date"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginLeft="135dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginStart="135dp"
|
|
|
+ android:text="2017.08.04"
|
|
|
+ app:layout_constraintHorizontal_bias="0.171"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/trade_detail_username"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/trade_detail_username" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_detail_priority"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:text="置顶1314"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/trade_detail_location"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/trade_detail_views" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_detail_views"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="阅读101"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/trade_detail_priority"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/trade_detail_date" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/trade_detail_content"
|
|
|
+ android:layout_width="336dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:text="这里是内容这里是内容这里
|
|
|
+ 是内容这里是内容这里是内容这
|
|
|
+ 里是内容这里是内容这里是内容"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_detail_priority"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginEnd="8dp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/trade_detail_imgs_layout"
|
|
|
+ android:layout_width="352dp"
|
|
|
+ android:layout_height="300dp"
|
|
|
+ android:layout_marginTop="27dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/trade_detail_content"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ android:orientation="vertical"/>
|
|
|
+ </android.support.constraint.ConstraintLayout>
|
|
|
+ </ScrollView>
|
|
|
+</LinearLayout>
|