activity_chat.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout 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. <androidx.constraintlayout.widget.ConstraintLayout
  6. android:layout_width="match_parent"
  7. android:background="#F6F6F6"
  8. android:layout_height="match_parent"
  9. tools:context=".ui.ChatActivity">
  10. <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  11. android:id="@+id/refreshLayout"
  12. android:layout_width="match_parent"
  13. android:layout_height="0dp"
  14. android:tag="layout/activity_base_list_0"
  15. app:layout_constraintBottom_toTopOf="@+id/line"
  16. app:layout_constraintTop_toTopOf="parent">
  17. <com.xuqm.base.view.EmptyView
  18. android:id="@+id/baseEmptyView"
  19. android:layout_width="match_parent"
  20. android:layout_height="match_parent">
  21. <androidx.recyclerview.widget.RecyclerView
  22. android:id="@+id/baseRecyclerView"
  23. android:layout_width="match_parent"
  24. android:layout_height="match_parent"
  25. android:overScrollMode="never" />
  26. </com.xuqm.base.view.EmptyView>
  27. </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
  28. <View
  29. android:id="@+id/line"
  30. android:layout_width="match_parent"
  31. android:layout_height="1dp"
  32. android:background="@color/line"
  33. app:layout_constraintBottom_toTopOf="@+id/tools" />
  34. <androidx.constraintlayout.widget.ConstraintLayout
  35. android:id="@+id/tools"
  36. android:layout_width="match_parent"
  37. android:layout_height="60dp"
  38. app:layout_constraintBottom_toBottomOf="parent">
  39. <EditText
  40. android:id="@+id/et"
  41. android:layout_width="0dp"
  42. android:layout_height="50dp"
  43. android:layout_marginHorizontal="5dp"
  44. app:layout_constraintBottom_toBottomOf="parent"
  45. app:layout_constraintEnd_toStartOf="@+id/btn_send"
  46. app:layout_constraintStart_toStartOf="parent"
  47. app:layout_constraintTop_toTopOf="parent" />
  48. <Button
  49. android:id="@+id/btn_send"
  50. android:layout_width="65dp"
  51. android:layout_height="40dp"
  52. android:layout_marginHorizontal="5dp"
  53. android:text="发送"
  54. android:textSize="11sp"
  55. app:layout_constraintBottom_toBottomOf="parent"
  56. app:layout_constraintEnd_toEndOf="parent"
  57. app:layout_constraintTop_toTopOf="parent" />
  58. </androidx.constraintlayout.widget.ConstraintLayout>
  59. </androidx.constraintlayout.widget.ConstraintLayout>
  60. </layout>