trade_details.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. android:id="@+id/trade_details_layout"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:clickable="true"
  8. android:foreground="?android:attr/selectableItemBackground"
  9. android:orientation="vertical">
  10. <android.support.design.widget.AppBarLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content">
  13. <com.sheishuo.app.common.views.BaseToolbar
  14. android:id="@id/toolbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="@dimen/action_bar_height"
  17. android:title="详情"/>
  18. </android.support.design.widget.AppBarLayout>
  19. <ScrollView
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:background="@color/color_background">
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:orientation="vertical">
  27. <android.support.constraint.ConstraintLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:padding="8dp"
  31. android:background="@color/white">
  32. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  33. android:id="@+id/trade_details_avatar"
  34. android:layout_width="48dp"
  35. android:layout_height="48dp"
  36. android:layout_marginLeft="16dp"
  37. android:layout_marginStart="16dp"
  38. android:layout_marginTop="16dp"
  39. android:src="@drawable/nim_avatar_default"
  40. app:layout_constraintLeft_toLeftOf="parent"
  41. app:layout_constraintTop_toTopOf="parent" />
  42. <TextView
  43. android:id="@+id/trade_details_name"
  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="16dp"
  49. android:text="用户名"
  50. app:layout_constraintLeft_toRightOf="@+id/trade_details_avatar"
  51. app:layout_constraintTop_toTopOf="parent" />
  52. <TextView
  53. android:id="@+id/trade_details_location"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_marginTop="8dp"
  57. android:text="发布地点"
  58. app:layout_constraintLeft_toLeftOf="@+id/trade_details_name"
  59. app:layout_constraintTop_toBottomOf="@+id/trade_details_name" />
  60. <com.sheishuo.app.common.views.PartlyHighLightTextView
  61. android:id="@+id/trade_details_content"
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:layout_marginEnd="16dp"
  65. android:layout_marginLeft="16dp"
  66. android:layout_marginRight="16dp"
  67. android:layout_marginStart="16dp"
  68. android:layout_marginTop="16dp"
  69. android:text="这里是交易内容详情这里是交易内容详情这里是交易内容详情这里是交易内容详情
  70. 这里是交易内容详情这里是交易内容详情这里是交易内容详情这里是交易内容详情"
  71. app:highlight_color="@color/green_4DC0A4"
  72. app:hightlight_str=""
  73. app:layout_constraintHorizontal_bias="1.0"
  74. app:layout_constraintLeft_toLeftOf="parent"
  75. app:layout_constraintRight_toRightOf="parent"
  76. app:layout_constraintTop_toBottomOf="@+id/trade_details_avatar" />
  77. <LinearLayout
  78. android:id="@+id/trade_details_img_layout"
  79. android:layout_width="0dp"
  80. android:layout_height="wrap_content"
  81. android:layout_marginTop="16dp"
  82. android:orientation="vertical"
  83. app:layout_constraintLeft_toLeftOf="@+id/trade_details_content"
  84. app:layout_constraintRight_toRightOf="@+id/trade_details_content"
  85. app:layout_constraintTop_toBottomOf="@+id/trade_details_content" />
  86. <TextView
  87. android:id="@+id/trade_details_date"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_marginEnd="8dp"
  91. android:layout_marginRight="8dp"
  92. android:layout_marginTop="8dp"
  93. android:padding="4dp"
  94. android:text="时间"
  95. app:layout_constraintRight_toRightOf="parent"
  96. app:layout_constraintTop_toTopOf="parent" />
  97. <TextView
  98. android:id="@+id/trade_details_read_num"
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:padding="4dp"
  102. android:text="阅读量123"
  103. android:visibility="gone"
  104. android:textColor="@color/grey_light_light"
  105. app:layout_constraintRight_toRightOf="parent"
  106. app:layout_constraintTop_toBottomOf="@+id/trade_details_date" />
  107. <TextView
  108. android:id="@+id/trade_details_priority"
  109. android:layout_width="wrap_content"
  110. android:layout_height="wrap_content"
  111. android:layout_marginEnd="10dp"
  112. android:layout_marginRight="10dp"
  113. android:background="@drawable/style_rounded_corner_editext"
  114. android:padding="4dp"
  115. android:text="置顶x123"
  116. android:textColor="@color/green_4DC0A4"
  117. app:layout_constraintRight_toLeftOf="@+id/trade_details_read_num"
  118. app:layout_constraintTop_toTopOf="@+id/trade_details_read_num" />
  119. </android.support.constraint.ConstraintLayout>
  120. </LinearLayout>
  121. </ScrollView>
  122. </LinearLayout>