activity_comment.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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:clickable="true"
  24. android:focusableInTouchMode="true"
  25. android:orientation="horizontal">
  26. <FrameLayout
  27. android:id="@+id/comment_touch_back"
  28. android:layout_width="0dp"
  29. android:layout_height="match_parent"
  30. android:layout_weight="2"></FrameLayout>
  31. <FrameLayout
  32. android:layout_width="0dp"
  33. android:layout_height="match_parent"
  34. android:layout_gravity="center"
  35. android:layout_weight="6"
  36. android:background="@color/white">
  37. <LinearLayout
  38. android:layout_width="match_parent"
  39. android:layout_height="match_parent"
  40. android:clickable="true"
  41. android:focusableInTouchMode="true"
  42. android:orientation="vertical">
  43. <LinearLayout
  44. android:layout_width="match_parent"
  45. android:layout_height="0dp"
  46. android:layout_gravity="center|top"
  47. android:layout_weight="6"
  48. android:gravity="center|top"
  49. android:orientation="vertical">
  50. <TextView
  51. android:id="@+id/comment_count"
  52. android:layout_width="wrap_content"
  53. android:layout_height="42dp"
  54. android:layout_marginTop="38dp"
  55. android:alpha="0.8"
  56. android:text="评论:0"
  57. android:textColor="@color/black"
  58. android:textSize="30dp"></TextView>
  59. <FrameLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="match_parent">
  62. <androidx.recyclerview.widget.RecyclerView
  63. android:id="@+id/comment_item_layout"
  64. android:layout_width="match_parent"
  65. android:layout_height="match_parent"
  66. android:orientation="vertical"></androidx.recyclerview.widget.RecyclerView>
  67. <FrameLayout
  68. android:id="@+id/comment_no_comment"
  69. android:layout_width="match_parent"
  70. android:layout_height="match_parent"
  71. android:visibility="gone">
  72. <ImageView
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_gravity="center"
  76. android:src="@drawable/activity_comment_nocomment"></ImageView>
  77. </FrameLayout>
  78. </FrameLayout>
  79. </LinearLayout>
  80. <FrameLayout
  81. android:id="@+id/comment_quick_layout"
  82. android:layout_width="match_parent"
  83. android:layout_height="0dp"
  84. android:layout_weight="1.8"
  85. android:background="@color/aliceblue"
  86. android:paddingTop="10dp">
  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="26dp"></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_gravity="center"
  117. android:layout_marginTop="10dp"
  118. android:layout_marginBottom="10dp"
  119. android:layout_weight="1"
  120. android:divider="@drawable/main_left_tab_divider"
  121. android:orientation="horizontal"
  122. android:paddingLeft="20dp"
  123. android:paddingRight="20dp"
  124. android:showDividers="middle">
  125. <FrameLayout
  126. android:id="@+id/comment_quick_layout_item1"
  127. android:layout_width="0dp"
  128. android:layout_height="match_parent"
  129. android:layout_gravity="center"
  130. android:layout_weight="1"
  131. android:background="@drawable/activity_comment_quick_item_one_bg">
  132. <TextView
  133. android:layout_width="match_parent"
  134. android:layout_height="match_parent"
  135. android:layout_gravity="center"
  136. android:gravity="center"
  137. android:text="很优秀,向你学习"
  138. android:textColor="@color/white"
  139. android:textSize="24dp"></TextView>
  140. </FrameLayout>
  141. <FrameLayout
  142. android:id="@+id/comment_quick_layout_item2"
  143. android:layout_width="0dp"
  144. android:layout_height="match_parent"
  145. android:layout_weight="1"
  146. android:background="@drawable/activity_comment_quick_item_two_bg">
  147. <TextView
  148. android:layout_width="match_parent"
  149. android:layout_height="match_parent"
  150. android:layout_gravity="center"
  151. android:gravity="center"
  152. android:text="挺好的,期待更好"
  153. android:textColor="@color/white"
  154. android:textSize="24dp"></TextView>
  155. </FrameLayout>
  156. <FrameLayout
  157. android:id="@+id/comment_quick_layout_item3"
  158. android:layout_width="0dp"
  159. android:layout_height="match_parent"
  160. android:layout_weight="1"
  161. android:background="@drawable/activity_comment_quick_item_three_bg">
  162. <TextView
  163. android:layout_width="match_parent"
  164. android:layout_height="match_parent"
  165. android:layout_gravity="center"
  166. android:gravity="center"
  167. android:text="还可以,继续努力"
  168. android:textColor="@color/white"
  169. android:textSize="24dp"></TextView>
  170. </FrameLayout>
  171. </LinearLayout>
  172. </LinearLayout>
  173. <ImageView
  174. android:layout_width="wrap_content"
  175. android:layout_height="wrap_content"
  176. android:layout_gravity="center|top"
  177. android:layout_marginLeft="30dp"
  178. android:background="@drawable/comment_quick_layout_tip"></ImageView>
  179. </FrameLayout>
  180. <FrameLayout
  181. android:layout_width="match_parent"
  182. android:layout_height="120dp"
  183. android:background="@color/aliceblue"
  184. android:padding="20dp">
  185. <LinearLayout
  186. android:layout_width="match_parent"
  187. android:layout_height="match_parent"
  188. android:orientation="horizontal">
  189. <com.edufound.reader.cusview.RoundFrameLayout
  190. android:layout_width="0dp"
  191. android:layout_height="match_parent"
  192. android:layout_weight="3"
  193. android:background="@color/white">
  194. <EditText
  195. android:id="@+id/comment_edit_text"
  196. android:layout_width="match_parent"
  197. android:layout_height="match_parent"
  198. android:background="@null"
  199. android:gravity="center|left"
  200. android:hint="我有话说..."
  201. android:paddingLeft="20dp"
  202. android:textSize="25dp"></EditText>
  203. </com.edufound.reader.cusview.RoundFrameLayout>
  204. <FrameLayout
  205. android:layout_width="0dp"
  206. android:layout_height="match_parent"
  207. android:layout_weight="1">
  208. <com.edufound.reader.cusview.RoundFrameLayout
  209. android:id="@+id/comment_sendcomment"
  210. android:layout_width="match_parent"
  211. android:layout_height="match_parent"
  212. android:layout_marginLeft="20dp"
  213. android:background="@color/white">
  214. <TextView
  215. android:layout_width="match_parent"
  216. android:layout_height="match_parent"
  217. android:layout_gravity="center"
  218. android:gravity="center"
  219. android:text="发送"
  220. android:textColor="@color/dodgerblue"
  221. android:textSize="30dp"></TextView>
  222. </com.edufound.reader.cusview.RoundFrameLayout>
  223. </FrameLayout>
  224. </LinearLayout>
  225. </FrameLayout>
  226. </LinearLayout>
  227. <ImageView
  228. android:id="@+id/comment_back"
  229. android:layout_width="34dp"
  230. android:layout_height="34dp"
  231. android:layout_gravity="right|top"
  232. android:layout_marginTop="20dp"
  233. android:layout_marginRight="32dp"
  234. android:src="@drawable/close_icon"></ImageView>
  235. </FrameLayout>
  236. </LinearLayout>
  237. </FrameLayout>
  238. </androidx.constraintlayout.widget.ConstraintLayout>