circle_details.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7. <android.support.design.widget.AppBarLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content">
  10. <com.sheishuo.app.common.views.BaseToolbar
  11. android:id="@+id/toolbar"
  12. android:layout_width="match_parent"
  13. android:layout_height="@dimen/action_bar_height"
  14. style="@style/fullToolbarStyle"/>
  15. </android.support.design.widget.AppBarLayout>
  16. <ScrollView
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content">
  19. <LinearLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:orientation="vertical">
  23. <android.support.constraint.ConstraintLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:padding="16dp">
  27. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  28. android:id="@+id/circle_details_avatar"
  29. android:layout_width="48dp"
  30. android:layout_height="48dp"
  31. android:layout_marginLeft="8dp"
  32. android:layout_marginStart="8dp"
  33. android:layout_marginTop="8dp"
  34. android:src="@drawable/nim_avatar_default"
  35. app:layout_constraintLeft_toLeftOf="parent"
  36. app:layout_constraintTop_toTopOf="parent" />
  37. <TextView
  38. android:id="@+id/circle_details_name"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_marginLeft="15dp"
  42. android:layout_marginStart="15dp"
  43. android:text="用户名"
  44. app:layout_constraintLeft_toRightOf="@+id/circle_details_avatar"
  45. app:layout_constraintTop_toTopOf="@+id/circle_details_avatar" />
  46. <TextView
  47. android:id="@+id/circle_details_date"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:text="发布时间"
  51. app:layout_constraintBottom_toBottomOf="@+id/circle_details_avatar"
  52. app:layout_constraintLeft_toLeftOf="@+id/circle_details_name" />
  53. </android.support.constraint.ConstraintLayout>
  54. <com.sheishuo.app.common.views.PartlyHighLightTextView
  55. android:id="@+id/circle_details_content"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:layout_marginLeft="8dp"
  59. android:layout_marginStart="8dp"
  60. android:layout_marginTop="7dp"
  61. android:text="朋友圈内容朋友圈内容"
  62. app:layout_constraintLeft_toLeftOf="parent"
  63. app:layout_constraintTop_toBottomOf="@+id/circle_details_date" />
  64. <LinearLayout
  65. android:layout_width="match_parent"
  66. android:layout_height="wrap_content"
  67. android:gravity="center">
  68. <GridLayout
  69. android:id="@+id/circle_details_imgs_grid"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:numColumns="2"
  73. android:layout_margin="16dp" />
  74. </LinearLayout>
  75. <LinearLayout
  76. android:id="@+id/circle_details_info_layout"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:background="@color/color_background"
  80. android:orientation="vertical">
  81. <!--浏览量,喜欢,评论计数-->
  82. <LinearLayout
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:background="@color/white"
  86. android:gravity="end"
  87. android:orientation="horizontal"
  88. android:padding="8dp">
  89. <ImageView
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:visibility="gone"
  93. android:src="@drawable/circle_eye" />
  94. <TextView
  95. android:id="@+id/circle_details_read_num"
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:text="123"
  99. android:visibility="gone"
  100. android:textColor="@color/grey_light" />
  101. <TextView
  102. android:id="@+id/circle_details_delete"
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:layout_marginRight="10dp"
  106. android:text="删除"
  107. android:textColor="@color/grey_light" />
  108. <ImageView
  109. android:id="@+id/circle_details_like_icon"
  110. android:layout_width="wrap_content"
  111. android:layout_height="wrap_content"
  112. android:src="@drawable/circle_likes" />
  113. <TextView
  114. android:id="@+id/circle_details_like_num"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_marginRight="10dp"
  118. android:text="123"
  119. android:textColor="@color/grey_light" />
  120. <ImageView
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:src="@drawable/circle_comments" />
  124. <TextView
  125. android:id="@+id/circle_details_comment_num"
  126. android:layout_width="wrap_content"
  127. android:layout_height="wrap_content"
  128. android:text="评论"
  129. android:textColor="@color/grey_light" />
  130. </LinearLayout>
  131. <!--点赞用户头像-->
  132. <LinearLayout
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:layout_marginTop="8dp"
  136. android:background="@color/white"
  137. android:orientation="horizontal"
  138. android:padding="8dp">
  139. <LinearLayout
  140. android:id="@+id/circle_details_avatar_layout"
  141. android:layout_width="0dp"
  142. android:layout_height="wrap_content"
  143. android:layout_weight="9"
  144. android:orientation="horizontal" />
  145. <TextView
  146. android:id="@+id/circle_details_like_num2"
  147. android:layout_width="wrap_content"
  148. android:layout_height="wrap_content"
  149. android:layout_weight="1"
  150. android:gravity="end"
  151. android:text="3人已赞" />
  152. </LinearLayout>
  153. <!--间隔-->
  154. <LinearLayout
  155. android:layout_width="match_parent"
  156. android:layout_height="wrap_content"
  157. android:orientation="horizontal"
  158. android:padding="8dp">
  159. <View
  160. android:layout_width="4dp"
  161. android:layout_height="16dp"
  162. android:background="@color/colorPrimary" />
  163. <TextView
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:layout_marginLeft="4dp"
  167. android:layout_marginStart="4dp"
  168. android:text="全部评论"
  169. android:textColor="@color/grey_light" />
  170. </LinearLayout>
  171. <LinearLayout
  172. android:id="@+id/circle_details_comments_layout"
  173. android:layout_width="match_parent"
  174. android:layout_height="wrap_content"
  175. android:background="@color/white"
  176. android:orientation="vertical" >
  177. <TextView
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:background="@color/white"
  181. android:gravity="center"
  182. android:padding="64dp"
  183. android:text="暂无评论" />
  184. </LinearLayout>
  185. </LinearLayout>
  186. </LinearLayout>
  187. </ScrollView>
  188. </LinearLayout>