circle_details.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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:visibility="gone"
  92. android:src="@drawable/circle_eye" />
  93. <TextView
  94. android:id="@+id/circle_details_read_num"
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:text="123"
  98. android:visibility="gone"
  99. android:textColor="@color/grey_light" />
  100. <ImageView
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:src="@drawable/circle_likes" />
  104. <TextView
  105. android:id="@+id/circle_details_like_num"
  106. android:layout_width="wrap_content"
  107. android:layout_height="wrap_content"
  108. android:text="123"
  109. android:textColor="@color/grey_light" />
  110. <ImageView
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:src="@drawable/circle_comments" />
  114. <TextView
  115. android:id="@+id/circle_details_comment_num"
  116. android:layout_width="wrap_content"
  117. android:layout_height="wrap_content"
  118. android:text="评论"
  119. android:textColor="@color/grey_light" />
  120. </LinearLayout>
  121. <!--点赞用户头像-->
  122. <LinearLayout
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content"
  125. android:layout_marginTop="8dp"
  126. android:background="@color/white"
  127. android:orientation="horizontal"
  128. android:padding="8dp">
  129. <LinearLayout
  130. android:id="@+id/circle_details_avatar_layout"
  131. android:layout_width="0dp"
  132. android:layout_height="wrap_content"
  133. android:layout_weight="9"
  134. android:orientation="horizontal" />
  135. <TextView
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. android:layout_weight="1"
  139. android:gravity="end"
  140. android:text="3人已赞" />
  141. </LinearLayout>
  142. <!--间隔-->
  143. <LinearLayout
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:orientation="horizontal"
  147. android:padding="8dp">
  148. <View
  149. android:layout_width="4dp"
  150. android:layout_height="16dp"
  151. android:background="@color/colorPrimary" />
  152. <TextView
  153. android:layout_width="wrap_content"
  154. android:layout_height="wrap_content"
  155. android:layout_marginLeft="4dp"
  156. android:layout_marginStart="4dp"
  157. android:text="全部评论"
  158. android:textColor="@color/grey_light" />
  159. </LinearLayout>
  160. <LinearLayout
  161. android:id="@+id/circle_details_comments_layout"
  162. android:layout_width="match_parent"
  163. android:layout_height="wrap_content"
  164. android:background="@color/white"
  165. android:orientation="vertical" >
  166. <TextView
  167. android:layout_width="match_parent"
  168. android:layout_height="wrap_content"
  169. android:background="@color/white"
  170. android:gravity="center"
  171. android:padding="64dp"
  172. android:text="暂无评论" />
  173. </LinearLayout>
  174. </LinearLayout>
  175. </LinearLayout>
  176. </ScrollView>
  177. </LinearLayout>