activity_comment.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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:layout_gravity="center"
  7. android:background="@color/translucent_background"
  8. android:clickable="true"
  9. android:focusableInTouchMode="true"
  10. android:orientation="horizontal">
  11. <FrameLayout
  12. android:id="@+id/frameLayout"
  13. android:layout_width="1280dp"
  14. android:layout_height="720dp"
  15. android:layout_gravity="center"
  16. app:layout_constraintBottom_toBottomOf="parent"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. app:layout_constraintStart_toStartOf="parent"
  19. app:layout_constraintTop_toTopOf="parent">
  20. <LinearLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:background="@color/translucent_background"
  24. android:clickable="true"
  25. android:focusableInTouchMode="true"
  26. android:orientation="horizontal">
  27. <Space
  28. android:id="@+id/comment_touch_back"
  29. android:layout_width="0dp"
  30. android:layout_height="match_parent"
  31. android:layout_weight="2"></Space>
  32. <FrameLayout
  33. android:layout_width="0dp"
  34. android:layout_height="match_parent"
  35. android:layout_gravity="center"
  36. android:layout_weight="6"
  37. android:background="@color/white">
  38. <LinearLayout
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:clickable="true"
  42. android:focusableInTouchMode="true"
  43. android:orientation="vertical">
  44. <LinearLayout
  45. android:layout_width="match_parent"
  46. android:layout_height="0dp"
  47. android:layout_gravity="center|top"
  48. android:layout_weight="6"
  49. android:gravity="center|top"
  50. android:orientation="vertical">
  51. <TextView
  52. android:id="@+id/comment_count"
  53. android:layout_width="wrap_content"
  54. android:layout_height="42dp"
  55. android:layout_marginTop="38dp"
  56. android:alpha="0.8"
  57. android:text="评论:0"
  58. android:textColor="@color/black"
  59. android:textSize="30dp"></TextView>
  60. <FrameLayout
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent">
  63. <androidx.recyclerview.widget.RecyclerView
  64. android:id="@+id/comment_item_layout"
  65. android:layout_width="match_parent"
  66. android:layout_height="match_parent"
  67. android:orientation="vertical"></androidx.recyclerview.widget.RecyclerView>
  68. <FrameLayout
  69. android:id="@+id/comment_no_comment"
  70. android:layout_width="match_parent"
  71. android:layout_height="match_parent"
  72. android:visibility="gone">
  73. <ImageView
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:layout_gravity="center"
  77. android:src="@drawable/activity_comment_nocomment"></ImageView>
  78. </FrameLayout>
  79. </FrameLayout>
  80. </LinearLayout>
  81. <FrameLayout
  82. android:id="@+id/comment_quick_layout"
  83. android:layout_width="match_parent"
  84. android:layout_height="0dp"
  85. android:layout_weight="1.5"
  86. android:background="@color/aliceblue">
  87. <LinearLayout
  88. android:layout_width="match_parent"
  89. android:layout_height="match_parent"
  90. android:orientation="vertical">
  91. <FrameLayout
  92. android:layout_width="match_parent"
  93. android:layout_height="0dp"
  94. android:layout_weight="1">
  95. <TextView
  96. android:layout_width="wrap_content"
  97. android:layout_height="match_parent"
  98. android:layout_weight="1"
  99. android:gravity="center|left"
  100. android:paddingLeft="20dp"
  101. android:text="留下你的赞美,鼓励一下。"
  102. android:textColor="@color/black"
  103. android:textSize="28dp"></TextView>
  104. <ImageView
  105. android:id="@+id/comment_close_quick"
  106. android:layout_width="32dp"
  107. android:layout_height="32dp"
  108. android:layout_gravity="right|top"
  109. android:layout_marginTop="20dp"
  110. android:layout_marginRight="32dp"
  111. android:src="@drawable/close_icon"></ImageView>
  112. </FrameLayout>
  113. <LinearLayout
  114. android:layout_width="match_parent"
  115. android:layout_height="0dp"
  116. android:layout_weight="1"
  117. android:divider="@drawable/main_left_tab_divider"
  118. android:orientation="horizontal"
  119. android:paddingLeft="20dp"
  120. android:paddingRight="20dp"
  121. android:paddingBottom="20dp"
  122. android:showDividers="middle">
  123. <FrameLayout
  124. android:id="@+id/comment_quick_layout_item1"
  125. android:layout_width="0dp"
  126. android:layout_height="match_parent"
  127. android:layout_gravity="center"
  128. android:layout_weight="1"
  129. android:background="@drawable/activity_comment_quick_item_one_bg">
  130. <TextView
  131. android:layout_width="match_parent"
  132. android:layout_height="match_parent"
  133. android:layout_gravity="center"
  134. android:gravity="center"
  135. android:text="很优秀,向你学习"
  136. android:textColor="@color/white"
  137. android:textSize="24dp"></TextView>
  138. </FrameLayout>
  139. <FrameLayout
  140. android:id="@+id/comment_quick_layout_item2"
  141. android:layout_width="0dp"
  142. android:layout_height="match_parent"
  143. android:layout_weight="1"
  144. android:background="@drawable/activity_comment_quick_item_two_bg">
  145. <TextView
  146. android:layout_width="match_parent"
  147. android:layout_height="match_parent"
  148. android:layout_gravity="center"
  149. android:gravity="center"
  150. android:text="挺好的,期待更好"
  151. android:textColor="@color/white"
  152. android:textSize="24dp"></TextView>
  153. </FrameLayout>
  154. <FrameLayout
  155. android:id="@+id/comment_quick_layout_item3"
  156. android:layout_width="0dp"
  157. android:layout_height="match_parent"
  158. android:layout_weight="1"
  159. android:background="@drawable/activity_comment_quick_item_three_bg">
  160. <TextView
  161. android:layout_width="match_parent"
  162. android:layout_height="match_parent"
  163. android:layout_gravity="center"
  164. android:gravity="center"
  165. android:text="还可以,继续努力"
  166. android:textColor="@color/white"
  167. android:textSize="24dp"></TextView>
  168. </FrameLayout>
  169. </LinearLayout>
  170. </LinearLayout>
  171. </FrameLayout>
  172. <FrameLayout
  173. android:layout_width="match_parent"
  174. android:layout_height="120dp"
  175. android:background="@color/aliceblue"
  176. android:padding="20dp">
  177. <LinearLayout
  178. android:layout_width="match_parent"
  179. android:layout_height="match_parent"
  180. android:orientation="horizontal">
  181. <com.edufound.reader.cusview.RoundFrameLayout
  182. android:layout_width="0dp"
  183. android:layout_height="match_parent"
  184. android:layout_weight="3"
  185. android:background="@color/white">
  186. <EditText
  187. android:id="@+id/comment_edit_text"
  188. android:layout_width="match_parent"
  189. android:layout_height="match_parent"
  190. android:background="@null"
  191. android:gravity="center|left"
  192. android:hint="我有话说..."
  193. android:paddingLeft="20dp"
  194. android:textSize="25dp"></EditText>
  195. </com.edufound.reader.cusview.RoundFrameLayout>
  196. <FrameLayout
  197. android:layout_width="0dp"
  198. android:layout_height="match_parent"
  199. android:layout_weight="1">
  200. <com.edufound.reader.cusview.RoundFrameLayout
  201. android:id="@+id/comment_sendcomment"
  202. android:layout_width="match_parent"
  203. android:layout_height="match_parent"
  204. android:layout_marginLeft="20dp"
  205. android:background="@color/white">
  206. <TextView
  207. android:layout_width="match_parent"
  208. android:layout_height="match_parent"
  209. android:layout_gravity="center"
  210. android:gravity="center"
  211. android:text="发送"
  212. android:textColor="@color/dodgerblue"
  213. android:textSize="30dp"></TextView>
  214. </com.edufound.reader.cusview.RoundFrameLayout>
  215. </FrameLayout>
  216. </LinearLayout>
  217. </FrameLayout>
  218. </LinearLayout>
  219. <ImageView
  220. android:id="@+id/comment_back"
  221. android:layout_width="34dp"
  222. android:layout_height="34dp"
  223. android:layout_gravity="right|top"
  224. android:layout_marginTop="20dp"
  225. android:layout_marginRight="32dp"
  226. android:src="@drawable/close_icon"></ImageView>
  227. </FrameLayout>
  228. </LinearLayout>
  229. </FrameLayout>
  230. </androidx.constraintlayout.widget.ConstraintLayout>