chat_layout.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@drawable/icon_uniform_background"
  8. android:orientation="vertical">
  9. <com.tencent.qcloud.tuikit.timcommon.component.TitleBarLayout
  10. android:id="@+id/chat_title_bar"
  11. android:layout_width="match_parent"
  12. android:layout_height="@dimen/divider_108px" />
  13. <View
  14. android:id="@+id/view_line"
  15. android:layout_width="match_parent"
  16. android:layout_height="0.3dp"
  17. android:layout_below="@+id/chat_title_bar"
  18. android:background="@color/chat_title_line_color"
  19. android:visibility="gone" />
  20. <androidx.cardview.widget.CardView
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent"
  23. android:layout_below="@+id/view_line"
  24. android:layout_marginStart="@dimen/divider_22px"
  25. android:layout_marginEnd="@dimen/divider_22px"
  26. android:layout_marginBottom="@dimen/divider_22px"
  27. app:cardBackgroundColor="@android:color/white"
  28. app:cardCornerRadius="@dimen/divider_28px">
  29. <RelativeLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent">
  32. <FrameLayout
  33. android:id="@+id/custom_layout"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:layout_marginTop="0dp"
  37. android:visibility="gone" />
  38. <com.tencent.qcloud.tuikit.tuichat.classicui.component.noticelayout.NoticeLayout
  39. android:id="@+id/chat_group_apply_layout"
  40. android:layout_width="match_parent"
  41. android:layout_height="wrap_content"
  42. android:layout_below="@+id/custom_layout"
  43. android:visibility="gone" />
  44. <com.tencent.qcloud.tuikit.tuichat.classicui.component.noticelayout.NoticeLayout
  45. android:id="@+id/chat_notice_layout"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:layout_below="@+id/chat_group_apply_layout"
  49. android:layout_marginTop="1dp"
  50. android:visibility="gone" />
  51. <com.tencent.qcloud.tuikit.tuichat.classicui.widget.message.MessageRecyclerView
  52. android:id="@+id/chat_message_layout"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:layout_above="@id/chat_input_layout"
  56. android:layout_below="@+id/chat_notice_layout"
  57. android:baselineAligned="false"
  58. android:clickable="false"
  59. android:descendantFocusability="blocksDescendants" />
  60. <com.tencent.qcloud.tuikit.tuichat.classicui.widget.input.InputView
  61. android:id="@+id/chat_input_layout"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:layout_above="@id/forward_layout"
  65. android:layout_alignParentBottom="true" />
  66. <androidx.cardview.widget.CardView
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:layout_above="@+id/chat_input_layout"
  70. android:layout_alignParentEnd="true"
  71. android:layout_alignParentRight="true"
  72. android:layout_marginEnd="@dimen/btn_margin_right"
  73. android:layout_marginRight="@dimen/btn_margin_right"
  74. android:layout_marginBottom="@dimen/btn_margin_right"
  75. app:cardCornerRadius="4dp"
  76. app:cardElevation="6dp"
  77. app:cardUseCompatPadding="true">
  78. <LinearLayout
  79. android:id="@+id/jump_message_layout"
  80. android:layout_width="wrap_content"
  81. android:layout_height="33.6dp"
  82. android:background="#FFFFFF"
  83. android:gravity="center"
  84. android:orientation="horizontal"
  85. android:paddingLeft="10.08dp"
  86. android:paddingTop="9.12dp"
  87. android:paddingRight="9.6dp"
  88. android:paddingBottom="8.64dp"
  89. android:visibility="visible">
  90. <ImageView
  91. android:id="@+id/arrow_icon"
  92. android:layout_width="11.52dp"
  93. android:layout_height="11.52dp"
  94. android:layout_gravity="center"
  95. android:background="?attr/chat_jump_recent_down_icon"
  96. android:clickable="false"
  97. android:scaleType="fitCenter" />
  98. <TextView
  99. android:id="@+id/jump_message_content"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_marginLeft="5.76dp"
  103. android:gravity="center_vertical"
  104. android:singleLine="true"
  105. android:textColor="?attr/core_primary_color"
  106. android:textSize="11.52sp" />
  107. </LinearLayout>
  108. </androidx.cardview.widget.CardView>
  109. <LinearLayout
  110. android:id="@+id/forward_layout"
  111. android:layout_width="match_parent"
  112. android:layout_height="wrap_content"
  113. android:layout_alignParentBottom="true"
  114. android:background="#E6E9EB"
  115. android:gravity="center_horizontal"
  116. android:orientation="horizontal"
  117. android:paddingLeft="38.4dp"
  118. android:paddingTop="15.36dp"
  119. android:paddingRight="38.4dp"
  120. android:paddingBottom="46.08dp"
  121. android:visibility="gone"
  122. tools:visibility="visible">
  123. <LinearLayout
  124. android:id="@+id/forward_one_by_one_button"
  125. android:layout_width="wrap_content"
  126. android:layout_height="wrap_content"
  127. android:layout_weight="0.33"
  128. android:gravity="center"
  129. android:orientation="vertical">
  130. <ImageView
  131. android:layout_width="38.4dp"
  132. android:layout_height="38.4dp"
  133. android:background="@drawable/multi_select_forward_one" />
  134. <TextView
  135. android:layout_width="wrap_content"
  136. android:layout_height="wrap_content"
  137. android:layout_marginTop="5.76dp"
  138. android:text="@string/forward_mode_onebyone"
  139. android:textColor="#444444"
  140. android:textSize="11.52sp" />
  141. </LinearLayout>
  142. <LinearLayout
  143. android:id="@+id/forward_merge_button"
  144. android:layout_width="wrap_content"
  145. android:layout_height="wrap_content"
  146. android:layout_weight="0.33"
  147. android:gravity="center"
  148. android:orientation="vertical">
  149. <ImageView
  150. android:layout_width="38.4dp"
  151. android:layout_height="38.4dp"
  152. android:background="@drawable/multi_select_forward_merge" />
  153. <TextView
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:layout_marginTop="5.76dp"
  157. android:text="@string/forward_mode_merge"
  158. android:textColor="#444444"
  159. android:textSize="11.52sp" />
  160. </LinearLayout>
  161. <LinearLayout
  162. android:id="@+id/delete_button"
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_weight="0.33"
  166. android:gravity="center"
  167. android:orientation="vertical">
  168. <ImageView
  169. android:layout_width="38.4dp"
  170. android:layout_height="38.4dp"
  171. android:background="@drawable/multi_select_delete" />
  172. <TextView
  173. android:layout_width="wrap_content"
  174. android:layout_height="wrap_content"
  175. android:layout_marginTop="5.76dp"
  176. android:text="@string/delete_button"
  177. android:textColor="#444444"
  178. android:textSize="11.52sp" />
  179. </LinearLayout>
  180. </LinearLayout>
  181. <RelativeLayout
  182. android:id="@+id/voice_recording_view"
  183. android:layout_width="150dp"
  184. android:layout_height="150dp"
  185. android:layout_centerInParent="true"
  186. android:background="@drawable/ic_volume_dialog_bg"
  187. android:visibility="gone">
  188. <LinearLayout
  189. android:layout_width="match_parent"
  190. android:layout_height="match_parent"
  191. android:layout_centerInParent="true"
  192. android:gravity="center_horizontal"
  193. android:orientation="vertical">
  194. <ImageView
  195. android:id="@+id/recording_icon"
  196. android:layout_width="match_parent"
  197. android:layout_height="100dp"
  198. android:layout_marginTop="10dp" />
  199. <TextView
  200. android:id="@+id/recording_tips"
  201. android:layout_width="wrap_content"
  202. android:layout_height="wrap_content"
  203. android:layout_marginTop="10dp"
  204. android:textSize="12sp" />
  205. </LinearLayout>
  206. </RelativeLayout>
  207. </RelativeLayout>
  208. </androidx.cardview.widget.CardView>
  209. </RelativeLayout>