circle_details.xml 8.7 KB

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