chat_layout.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. <androidx.cardview.widget.CardView
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:layout_below="@+id/chat_title_bar"
  17. android:layout_marginStart="@dimen/divider_22px"
  18. android:layout_marginEnd="@dimen/divider_22px"
  19. android:layout_marginBottom="@dimen/divider_22px"
  20. app:cardBackgroundColor="@android:color/white"
  21. app:cardCornerRadius="@dimen/divider_28px">
  22. <RelativeLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent">
  25. <FrameLayout
  26. android:id="@+id/custom_layout"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_marginTop="0dp"
  30. android:visibility="gone" />
  31. <com.tencent.qcloud.tuikit.tuichat.classicui.widget.message.MessageRecyclerView
  32. android:id="@+id/chat_message_layout"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_above="@id/chat_input_layout"
  36. android:baselineAligned="false"
  37. android:clickable="false"
  38. android:descendantFocusability="blocksDescendants" />
  39. <com.tencent.qcloud.tuikit.tuichat.classicui.widget.input.InputView
  40. android:id="@+id/chat_input_layout"
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:layout_alignParentBottom="true" />
  44. <androidx.cardview.widget.CardView
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_above="@+id/chat_input_layout"
  48. android:layout_alignParentEnd="true"
  49. android:layout_alignParentRight="true"
  50. android:layout_marginEnd="@dimen/btn_margin_right"
  51. android:layout_marginRight="@dimen/btn_margin_right"
  52. android:layout_marginBottom="@dimen/btn_margin_right"
  53. app:cardCornerRadius="4dp"
  54. app:cardElevation="6dp"
  55. app:cardUseCompatPadding="true">
  56. <LinearLayout
  57. android:id="@+id/jump_message_layout"
  58. android:layout_width="wrap_content"
  59. android:layout_height="33.6dp"
  60. android:background="#FFFFFF"
  61. android:gravity="center"
  62. android:orientation="horizontal"
  63. android:paddingLeft="10.08dp"
  64. android:paddingTop="9.12dp"
  65. android:paddingRight="9.6dp"
  66. android:paddingBottom="8.64dp"
  67. android:visibility="visible">
  68. <ImageView
  69. android:id="@+id/arrow_icon"
  70. android:layout_width="11.52dp"
  71. android:layout_height="11.52dp"
  72. android:layout_gravity="center"
  73. android:background="?attr/chat_jump_recent_down_icon"
  74. android:clickable="false"
  75. android:scaleType="fitCenter" />
  76. <TextView
  77. android:id="@+id/jump_message_content"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:layout_marginLeft="5.76dp"
  81. android:gravity="center_vertical"
  82. android:singleLine="true"
  83. android:textColor="?attr/core_primary_color"
  84. android:textSize="11.52sp" />
  85. </LinearLayout>
  86. </androidx.cardview.widget.CardView>
  87. <RelativeLayout
  88. android:id="@+id/voice_recording_view"
  89. android:layout_width="150dp"
  90. android:layout_height="150dp"
  91. android:layout_centerInParent="true"
  92. android:background="@drawable/ic_volume_dialog_bg"
  93. android:visibility="gone">
  94. <LinearLayout
  95. android:layout_width="match_parent"
  96. android:layout_height="match_parent"
  97. android:layout_centerInParent="true"
  98. android:gravity="center_horizontal"
  99. android:orientation="vertical">
  100. <ImageView
  101. android:id="@+id/recording_icon"
  102. android:layout_width="match_parent"
  103. android:layout_height="100dp"
  104. android:layout_marginTop="10dp" />
  105. <TextView
  106. android:id="@+id/recording_tips"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_marginTop="10dp"
  110. android:textSize="12sp" />
  111. </LinearLayout>
  112. </RelativeLayout>
  113. </RelativeLayout>
  114. </androidx.cardview.widget.CardView>
  115. </RelativeLayout>