trade_detail_activity.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <com.sheishuo.app.common.views.BaseToolbar
  9. android:id="@+id/toolbar"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:background="@color/colorPrimary"
  13. android:title="详情" />
  14. <ScrollView
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent">
  17. <android.support.constraint.ConstraintLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:padding="8dp">
  21. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  22. android:id="@+id/trade_detail_avatar"
  23. android:layout_width="48dp"
  24. android:layout_height="48dp"
  25. android:layout_marginLeft="8dp"
  26. android:layout_marginStart="8dp"
  27. android:layout_marginTop="8dp"
  28. android:src="@drawable/ic_add_friends"
  29. app:layout_constraintLeft_toLeftOf="parent"
  30. app:layout_constraintTop_toTopOf="parent" />
  31. <TextView
  32. android:id="@+id/trade_detail_username"
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_marginLeft="15dp"
  36. android:layout_marginStart="15dp"
  37. android:layout_marginTop="0dp"
  38. android:text="用户名"
  39. android:textSize="16sp"
  40. app:layout_constraintLeft_toRightOf="@+id/trade_detail_avatar"
  41. app:layout_constraintTop_toTopOf="@+id/trade_detail_avatar" />
  42. <TextView
  43. android:id="@+id/trade_detail_location"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:layout_marginLeft="8dp"
  47. android:layout_marginStart="8dp"
  48. android:layout_marginTop="12dp"
  49. android:text="地理位置"
  50. android:textColor="@color/grey_light"
  51. android:textSize="14dp"
  52. app:layout_constraintLeft_toLeftOf="@+id/trade_detail_username"
  53. app:layout_constraintRight_toRightOf="@+id/trade_detail_username"
  54. app:layout_constraintTop_toBottomOf="@+id/trade_detail_username" />
  55. <TextView
  56. android:id="@+id/trade_detail_date"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_marginEnd="8dp"
  60. android:layout_marginLeft="135dp"
  61. android:layout_marginRight="8dp"
  62. android:layout_marginStart="135dp"
  63. android:text="2017.08.04"
  64. app:layout_constraintHorizontal_bias="0.171"
  65. app:layout_constraintLeft_toRightOf="@+id/trade_detail_username"
  66. app:layout_constraintRight_toRightOf="parent"
  67. app:layout_constraintTop_toTopOf="@+id/trade_detail_username" />
  68. <TextView
  69. android:id="@+id/trade_detail_priority"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:layout_marginEnd="8dp"
  73. android:layout_marginRight="8dp"
  74. android:text="置顶1314"
  75. app:layout_constraintBottom_toBottomOf="@+id/trade_detail_location"
  76. app:layout_constraintRight_toLeftOf="@+id/trade_detail_views" />
  77. <TextView
  78. android:id="@+id/trade_detail_views"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:text="阅读101"
  82. app:layout_constraintBottom_toBottomOf="@+id/trade_detail_priority"
  83. app:layout_constraintRight_toRightOf="@+id/trade_detail_date" />
  84. <TextView
  85. android:id="@+id/trade_detail_content"
  86. android:layout_width="336dp"
  87. android:layout_height="wrap_content"
  88. android:layout_marginLeft="8dp"
  89. android:layout_marginRight="8dp"
  90. android:layout_marginTop="8dp"
  91. android:text="这里是内容这里是内容这里
  92. 是内容这里是内容这里是内容这
  93. 里是内容这里是内容这里是内容"
  94. app:layout_constraintLeft_toLeftOf="parent"
  95. app:layout_constraintRight_toRightOf="parent"
  96. app:layout_constraintTop_toBottomOf="@+id/trade_detail_priority"
  97. android:layout_marginStart="8dp"
  98. android:layout_marginEnd="8dp" />
  99. <LinearLayout
  100. android:id="@+id/trade_detail_imgs_layout"
  101. android:layout_width="352dp"
  102. android:layout_height="300dp"
  103. android:layout_marginTop="27dp"
  104. app:layout_constraintTop_toBottomOf="@+id/trade_detail_content"
  105. android:layout_marginLeft="8dp"
  106. app:layout_constraintLeft_toLeftOf="parent"
  107. android:layout_marginRight="8dp"
  108. app:layout_constraintRight_toRightOf="parent"
  109. android:orientation="vertical"/>
  110. </android.support.constraint.ConstraintLayout>
  111. </ScrollView>
  112. </LinearLayout>