<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
android:background="@drawable/bg_white_top_20dp">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_date"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:text="2023年05月"
|
android:textSize="14sp"
|
android:textColor="@color/textColor"
|
android:textStyle="bold"
|
android:layout_marginTop="20dp"/>
|
<com.haibin.calendarview.CalendarView
|
android:id="@+id/calendar"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="#fff"
|
android:layout_marginHorizontal="22dp"
|
app:month_view="com.dollearn.student.views.calendar.SimpleMonthView"
|
app:calendar_height="46dp"
|
app:day_text_size="11sp"
|
app:current_month_text_color="@color/textColor66"
|
app:current_day_text_color="@color/colorTextOrange"
|
app:other_month_text_color="#e1e1e1"
|
app:scheme_text_color="#333"
|
app:scheme_theme_color="#333"
|
app:selected_text_color="#fff"
|
app:selected_theme_color="@color/colorAccent"
|
app:week_bar_view="com.dollearn.student.views.calendar.SimpleWeekBar"
|
app:week_bar_height="33dp"
|
app:select_mode="single_mode"
|
android:elevation="2dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_date"
|
android:layout_marginTop="12dp"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_cancel"
|
android:text="取消"
|
android:textColor="@color/textColor"
|
android:textStyle="bold"
|
android:textSize="14sp"
|
android:paddingVertical="16dp"
|
android:gravity="center"
|
android:layout_marginHorizontal="20dp"
|
app:layout_constraintTop_toBottomOf="@id/calendar"
|
android:background="@color/page_bg"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|