Create a calendar application or Calendar lib/Class which exposes all the necessary methods like
1. Shows list of days of current month
2. Able to switch via months, years, go to particular date
3. Create a custom methods to retrieve a week by a given date
An APK is also attached in the releases section.
graph TD
CalendarLibrary --> MainViewModel --> UI(MainActivity)
Name | Summary |
---|---|
getCurrentDay | [jvm] fun getCurrentDay(): Int |
getCurrentMonth | [jvm] fun getCurrentMonth(): Int |
getCurrentYear | [jvm] fun getCurrentYear(): Int |
getDateWithOffset | [jvm] fun getDateWithOffset(date: Int, month: Int, year: Int): Int |
getDateWithoutOffset | [jvm] fun getDateWithoutOffset(offsetDate: Int, month: Int, year: Int): Int |
getFormattedDaysInMonth | [jvm] fun getFormattedDaysInMonth(month: Int, year: Int): List<String> |
getNumOfDaysInMonth | [jvm] fun getNumOfDaysInMonth(month: Int, year: Int): List<Int> |
getNumOfDaysInTheCurrentMonth | [jvm] fun getNumOfDaysInTheCurrentMonth(): List<Int> Calculates the number of days in the current month |
getStringFormattedDate | [jvm] fun getStringFormattedDate(date: Int, month: Int, year: Int): String |
getWeekOfMonth | [jvm] fun getWeekOfMonth(date: Int, month: Int, year: Int): Int |
getWeekOfYear | [jvm] fun getWeekOfYear(date: Int, month: Int, year: Int): Int |
getWeekRange | [jvm] fun getWeekRange(date: Int, month: Int, year: Int): String |
Name | Summary |
---|---|
months | [jvm] val months: List<String> |
Made with โค by Rithik Jain