6tail / lunar-java

日历、公历(阳历)、农历(阴历、老黄历)、佛历、道历,支持节假日、星座、儒略日、干支、生肖、节气、节日、彭祖百忌、每日宜忌、吉神宜趋凶煞宜忌、吉神(喜神/福神/财神/阳贵神/阴贵神)方位、胎神方位、冲煞、纳音、星宿、八字、五行、十神、建除十二值星、青龙名堂等十二神、黄道日及吉凶等。lunar is a calendar library for Solar and Chinese Lunar.
http://6tail.cn/calendar/api.html
MIT License
667 stars 152 forks source link

关于是否能使用在kotlin上 #31

Open AGUIAtNight opened 1 year ago

AGUIAtNight commented 1 year ago

这个库能不能使用在安卓kotlin上,我已经在gradle上引入但是在kt代码上不知道怎么import

6tail commented 1 year ago

抱歉我还不会kotlin。

xuanyunhui commented 1 year ago
import com.nlf.calendar.Lunar
import com.nlf.calendar.Solar

就是java呀

lsiuhen commented 1 year ago

可以写成java,然后复制到.kt文件中,Androidstudio会自动帮你转换的