【发布时间】:2021-01-07 01:16:51
【问题描述】:
https://github.com/kizitonwose/CalendarView
我一直在使用这个库来设置水平日历视图。在这个库中,他们像这样设置日期范围:-
val currentMonth = YearMonth.now()
binding.mainSingleRowCalendar.setup(
currentMonth,
currentMonth.plusMonths(2),
DayOfWeek.values().random()
)
这里使用月份来设置日期范围。我需要它是一个特定的日期。有什么解决办法吗? 我的实际要求是显示从当前日期起过去 30 天。
【问题讨论】:
标签: android kotlin calendarview