仿携程日历控件
RecycleView实现日历列表,其中每个itemView纯cavas绘制。
github地址 欢迎 start Issues
支持以下功能
日历选中和不可选样式
行间距以及颜色设置
最大可以选择多少天
悬停月份展示
单选和范围选择
Demo
单选
image
范围选择
image
使用
XML文件
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp" />
android:id="@+id/calendar_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF"
sy:dividerHeight="5dp"
sy:firstSelectDayText="入住"
sy:lastSelectDayText="离店"
sy:selectMaxRange="2