sy007 / CalendarView

一款强大的Android日历控件
85 stars 17 forks source link

农历怎么添加 #6

Closed KevinLiu9527 closed 2 years ago

KevinLiu9527 commented 4 years ago

项目中怎么添加显示农历

sy007 commented 4 years ago

@KevinLiu9527 你好,目前只有把项目拉下来修改MonthView#covertAndSaveFestival 方法实现,在该方法中可以确定当前日期,你需要自己根据当前日期转换农历节日,并保存在festivalMap中。

KevinLiu9527 commented 4 years ago

添加的农历,如何显示在数字日期下面,而不是显示在上面

kevinliu9527

kevinliu9527@163.com | 签名由网易邮箱大师定制 在2020年9月3日 17:47,SunYuannotifications@github.com 写道:

@KevinLiu9527 你好,目前只有把项目拉下来修改MonthView#covertAndSaveFestival 方法实现,在该方法中可以确定当前日期,你需要自己根据当前日期转换农历节日,并保存在festivalMap中。

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

sy007 commented 4 years ago

您好,需要您调整MonthView#drawDays 内部canvas.drawText的顺序,本库默认是节日在上,日期在下,您可以clone下来自行调整。

sy007 commented 2 years ago

@KevinLiu9527 新版本已发布,支持了农历节日展示,可以看下Simple的使用方式奥。