fragment_course_table_layout.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:background="@color/color_f6f8f9"
  7. android:layout_height="match_parent">
  8. <View
  9. android:id="@+id/view_status_bar"
  10. android:layout_width="match_parent"
  11. android:layout_height="20dp"
  12. android:background="@color/white"
  13. app:layout_constrainedHeight="true"
  14. app:layout_constraintLeft_toLeftOf="parent"
  15. app:layout_constraintTop_toTopOf="parent" />
  16. <View
  17. android:id="@+id/view_tool_bar_bg"
  18. android:layout_width="match_parent"
  19. android:layout_height="45dp"
  20. android:background="@color/white"
  21. app:layout_constraintLeft_toLeftOf="parent"
  22. app:layout_constraintRight_toRightOf="parent"
  23. app:layout_constraintTop_toBottomOf="@+id/view_status_bar" />
  24. <TextView
  25. android:id="@+id/tv_current_date"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:includeFontPadding="false"
  29. android:textColor="@color/color_333333"
  30. android:textSize="@dimen/sp_18"
  31. app:layout_constraintBottom_toBottomOf="@+id/view_tool_bar_bg"
  32. app:layout_constraintLeft_toLeftOf="@+id/view_tool_bar_bg"
  33. app:layout_constraintRight_toRightOf="@+id/view_tool_bar_bg"
  34. app:layout_constraintTop_toTopOf="@+id/view_tool_bar_bg"
  35. tools:text="2021年9月" />
  36. <ImageView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_marginStart="3dp"
  40. android:src="@drawable/icon_arrow_down"
  41. app:layout_constraintBottom_toBottomOf="@+id/tv_current_date"
  42. app:layout_constraintLeft_toRightOf="@+id/tv_current_date"
  43. app:layout_constraintTop_toTopOf="@+id/tv_current_date" />
  44. <View
  45. android:layout_width="match_parent"
  46. android:layout_height="1dp"
  47. android:background="@color/divide_color2"
  48. app:layout_constraintTop_toBottomOf="@+id/view_tool_bar_bg" />
  49. <com.scwang.smart.refresh.layout.SmartRefreshLayout
  50. android:id="@+id/refreshLayout"
  51. android:layout_width="match_parent"
  52. android:layout_height="0dp"
  53. app:layout_constraintBottom_toBottomOf="parent"
  54. app:layout_constraintTop_toBottomOf="@+id/view_tool_bar_bg">
  55. <com.haibin.calendarview.CalendarLayout
  56. android:id="@+id/calendarLayout"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"
  59. android:orientation="vertical"
  60. app:calendar_content_view_id="@+id/recyclerView"
  61. app:default_status="shrink">
  62. <com.cooleshow.base.widgets.MyCalenderView
  63. android:id="@+id/calendarView"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:paddingStart="@dimen/dp_8"
  67. android:paddingEnd="@dimen/dp_8"
  68. app:calendar_height="@dimen/dp_56"
  69. app:current_day_text_color="@color/colorPrimary"
  70. app:current_month_text_color="@color/black_444"
  71. app:day_text_size="@dimen/dp_15"
  72. app:layout_constraintEnd_toEndOf="parent"
  73. app:layout_constraintStart_toStartOf="parent"
  74. app:layout_constraintTop_toTopOf="parent"
  75. app:max_year="2100"
  76. app:min_year="1990"
  77. app:month_view="com.cooleshow.teacher.widgets.SimpleMonthView"
  78. app:month_view_show_mode="mode_only_current"
  79. app:scheme_text_color="@color/color_ff6363"
  80. app:scheme_theme_color="@color/white"
  81. app:select_mode="single_mode"
  82. app:selected_text_color="@color/white"
  83. app:selected_theme_color="@color/colorPrimary"
  84. app:week_background="@color/white"
  85. app:week_bar_height="@dimen/dp_45"
  86. app:week_line_background="@color/color_f2f2f2"
  87. app:week_start_with="sun"
  88. app:week_text_color="@color/gray_777"
  89. app:week_text_size="@dimen/dp_16"
  90. app:week_view="com.cooleshow.teacher.widgets.SimpleWeekView"
  91. app:year_view_background="@color/white" />
  92. <androidx.recyclerview.widget.RecyclerView
  93. android:id="@+id/recyclerView"
  94. android:layout_width="match_parent"
  95. android:layout_height="match_parent"
  96. android:background="@color/color_f6f8f9"
  97. android:overScrollMode="never"
  98. android:scrollbars="none" />
  99. </com.haibin.calendarview.CalendarLayout>
  100. </com.scwang.smart.refresh.layout.SmartRefreshLayout>
  101. </androidx.constraintlayout.widget.ConstraintLayout>