layout_week.xml 1.19 KB
<?xml version="1.0" encoding="utf-8"?>
<com.amy.monthweek.materialcalendarview.MonthWeekMaterialCalendarView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/slidelayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.prolificinteractive.materialcalendarview.MaterialCalendarView
        android:id="@+id/calendarView_month_mode"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:mcv_calendarMode="month"
        app:mcv_showOtherDates="other_months"
        app:mcv_showWeekView="false"
         />

    <com.prolificinteractive.materialcalendarview.MaterialCalendarView
        android:id="@+id/calendarView_week_mode"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@android:color/white"
        android:visibility="invisible"
        app:mcv_calendarMode="week"
        app:mcv_showTopBar="false"
        app:mcv_showWeekView="false" />

</com.amy.monthweek.materialcalendarview.MonthWeekMaterialCalendarView>