chat_layout.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@drawable/icon_uniform_background"
  7. android:orientation="vertical">
  8. <com.tencent.qcloud.tuikit.timcommon.component.TitleBarLayout
  9. android:id="@+id/chat_title_bar"
  10. android:layout_width="match_parent"
  11. android:layout_height="@dimen/divider_108px" />
  12. <androidx.cardview.widget.CardView
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:layout_below="@+id/chat_title_bar"
  16. android:layout_marginStart="@dimen/divider_22px"
  17. android:layout_marginEnd="@dimen/divider_22px"
  18. android:layout_marginBottom="@dimen/divider_22px"
  19. app:cardBackgroundColor="@android:color/white"
  20. app:cardCornerRadius="@dimen/divider_28px">
  21. <RelativeLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent">
  24. <TextView
  25. android:id="@+id/titleLayout"
  26. android:layout_width="match_parent"
  27. android:layout_height="@dimen/divider_54px"
  28. android:layout_marginStart="@dimen/divider_36px"
  29. android:layout_marginTop="@dimen/divider_20px"
  30. android:layout_marginEnd="@dimen/divider_36px"
  31. android:background="@drawable/bg_session_prompt"
  32. android:gravity="center"
  33. android:orientation="vertical"
  34. android:visibility="gone"
  35. android:text="已通知医生接诊,24小时后未接诊将自动退款"
  36. android:textColor="@android:color/white" />
  37. <FrameLayout
  38. android:id="@+id/custom_layout"
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:layout_marginTop="0dp"
  42. android:visibility="gone" />
  43. <com.tencent.qcloud.tuikit.tuichat.classicui.widget.message.MessageRecyclerView
  44. android:id="@+id/chat_message_layout"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:layout_above="@id/chat_input_layout"
  48. android:layout_below="@+id/titleLayout"
  49. android:layout_marginTop="@dimen/divider_10px"
  50. android:baselineAligned="false"
  51. android:clickable="false"
  52. android:descendantFocusability="blocksDescendants" />
  53. <com.tencent.qcloud.tuikit.tuichat.classicui.widget.input.InputView
  54. android:id="@+id/chat_input_layout"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_alignParentBottom="true" />
  58. <androidx.cardview.widget.CardView
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_above="@+id/chat_input_layout"
  62. android:layout_alignParentEnd="true"
  63. android:layout_marginEnd="@dimen/btn_margin_right"
  64. android:layout_marginBottom="@dimen/btn_margin_right"
  65. app:cardCornerRadius="4dp"
  66. app:cardElevation="6dp"
  67. app:cardUseCompatPadding="true">
  68. <LinearLayout
  69. android:id="@+id/jump_message_layout"
  70. android:layout_width="wrap_content"
  71. android:layout_height="33.6dp"
  72. android:background="#FFFFFF"
  73. android:gravity="center"
  74. android:orientation="horizontal"
  75. android:paddingStart="10.08dp"
  76. android:paddingTop="9.12dp"
  77. android:paddingEnd="9.6dp"
  78. android:paddingBottom="8.64dp"
  79. android:visibility="visible">
  80. <ImageView
  81. android:id="@+id/arrow_icon"
  82. android:layout_width="11.52dp"
  83. android:layout_height="11.52dp"
  84. android:layout_gravity="center"
  85. android:background="?attr/chat_jump_recent_down_icon"
  86. android:clickable="false"
  87. android:scaleType="fitCenter" />
  88. <TextView
  89. android:id="@+id/jump_message_content"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_marginLeft="5.76dp"
  93. android:gravity="center_vertical"
  94. android:singleLine="true"
  95. android:textColor="?attr/core_primary_color"
  96. android:textSize="11.52sp" />
  97. </LinearLayout>
  98. </androidx.cardview.widget.CardView>
  99. <androidx.cardview.widget.CardView
  100. android:id="@+id/voice_recording_view"
  101. android:layout_width="@dimen/divider_430px"
  102. android:layout_height="@dimen/divider_320px"
  103. android:layout_centerInParent="true"
  104. android:visibility="gone"
  105. app:cardCornerRadius="@dimen/divider_30px">
  106. <LinearLayout
  107. android:layout_width="match_parent"
  108. android:layout_height="match_parent"
  109. android:layout_centerInParent="true"
  110. android:background="@drawable/ic_volume_dialog_bg"
  111. android:gravity="center_horizontal"
  112. android:orientation="vertical">
  113. <ImageView
  114. android:id="@+id/recording_icon"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_marginTop="@dimen/divider_62px"
  118. android:scaleType="centerInside" />
  119. <TextView
  120. android:id="@+id/recording_tips"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_marginTop="@dimen/divider_48px"
  124. android:textColor="@android:color/white"
  125. android:textSize="@dimen/divider_32px" />
  126. </LinearLayout>
  127. </androidx.cardview.widget.CardView>
  128. </RelativeLayout>
  129. </androidx.cardview.widget.CardView>
  130. </RelativeLayout>