Skip to content

仿github、leetcode、豆瓣观影记录的打卡日历view

Notifications You must be signed in to change notification settings

CCY0122/MarkCalendarView

Repository files navigation

MarkCalendarView

仿github、leetcode、豆瓣观影记录的打卡日历view

效果图:


img1


img2

使用:

1、直接使用MarkCalendarView :xml中使用它,在代码中调用markCalendarView.setDatas(Calendar startDate, List<Bean> datas)传入时间数据(第一个参数为起始日期,第二个参数为从起始日期开始前面的打卡历史数据,里面记录着当天打卡次数等信息)。
2、打卡数据很多的话,建议使用RecyclerView,以保证屏幕外的数据不会被绘制。已提供对应的adapter:MarkCalendarRecyclerViewAdapter。demo见DemoActivity
3、可自定义打卡小正方形的绘制逻辑,如定制打卡次数所对应的颜色(默认绿色),选中时的样式(默认红框),以及自定义标记图(默认蓝色圆圈)。祥见MarkCalendarView 源码

Releases

No releases published

Packages

No packages published

Languages