如何在 materialCalendarView 中隐藏当前月份的上个月日期

How to Hide previous month dates in current month in materialCalendarView

Material CalendarView:I 想显示每个月的第一个日期,而不是显示上个月或下个月日期的日历

 private void setStartDate() {

        calendar = LocalDate.now();
      //   calendarView.setSelectedDate(calendar);
        calendarView.getCurrentDate();


        Calendar c = Calendar.getInstance();
        Log.e("----", Calendar.DATE + "");

        c.set(Calendar.DAY_OF_MONTH, c.getActualMinimum(Calendar.DAY_OF_MONTH));
        calendarView.state().edit()
                .setMinimumDate(c)
                .commit();


    }
 <com.prolificinteractive.materialcalendarview.MaterialCalendarView
        android:id="@+id/smallView"
        android:layout_width="@dimen/calendar_size_small"
        android:layout_height="@dimen/calendar_size_small"
        app:mcv_showOtherDates="all"
 />

只需从 xml 视图中删除 app:mcv_showOtherDates="all"