You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val lunarDay = LunarCoreHelper.convertSolar2Lunar(date.dayOfMonth, date.month.value, 2024, 7.0)
val solarDate = "${date.dayOfMonth}"
var lunarDate = "${lunarDay[0]}"
val lunarMonth = lunarDay[1]
if (lunarDay[0] == 1) {
lunarDate = "${lunarDay[0]}/${lunarMonth}"
}
val chineseCalendar = ChineseCalendar(convertLocalDateToDate(date))
val chineseDay = chineseCalendar.get(ChineseCalendar.DAY_OF_MONTH)
val chineseMonth = chineseCalendar.get(ChineseCalendar.MONTH)
var lunarDate = "$chineseDay"
if (chineseDay == 1) {
lunarDate = "${chineseDay}/${chineseMonth + 1}"
}
ChineseCalendar already has in Android Studio, just implement: _import android.icu.util.ChineseCalendar_ and use them.
Link for [LunarCoreHelper](https://github.com/appota/JavaLunarCore/blob/master/lunarcore/src/main/java/com/appota/lunarcore/LunarCoreHelper.java)
Library information:
Question:
[how can i show the lunar calendar's bellow the number?]
like this
The text was updated successfully, but these errors were encountered: