Android-Week-View
Android-Week-View copied to clipboard
how to add other calendar formats? like jalali (persian) calender
This current library uses Gregorian calendar format by default. Is there a way to change this format and use jalali calendar format?
I think using locale you can change it.
@droidstered can you give me more info about this locale? I mean what should I do?
https://github.com/siavash-sajjad/Persian-Week-View
You can set the interpreter which provides the text to show in the header column and the header row.
mWeekView.dateTimeInterpreter = object : DateTimeInterpreter {
override fun interpretDate(date: Calendar): String {
return ConvertToPersianCalendar(date)
}
override fun interpretTime(hour: Int): String {
return hour.toString()
}
}