From 63366978240d981e0e51c3d5ba6c2a97897ff00b Mon Sep 17 00:00:00 2001 From: Kizito Nwose Date: Sat, 3 Aug 2024 09:48:37 +0200 Subject: [PATCH] Update docs --- docs/View.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/View.md b/docs/View.md index 995e530b..eec0a63b 100644 --- a/docs/View.md +++ b/docs/View.md @@ -377,6 +377,14 @@ calendarView.dayBinder = object : MonthDayBinder { `monthDates` have their `position` property set to `DayPosition.MonthDate` as seen in the code snippet above. +**The following attributes are available for ONLY `WeekCalendarView` class:** + +- **weekHeaderResource**: The xml resource that is inflated and used as a header for every week. + +- **weekFooterResource**: The xml resource that is inflated and used as a footer for every week. + +- **weekViewClass**: A ViewGroup that is instantiated and used as the container for each week. This class must have a constructor which takes only a Context. You should exclude the name and constructor of this class from code obfuscation if enabled. + **The following attributes are available for ONLY `YearCalendarView` class:** - **yearHeaderResource**: The xml resource that is inflated and used as a header for each year. @@ -399,14 +407,6 @@ calendarView.dayBinder = object : MonthDayBinder { uniformly to fill the parent's height. However, the day content height will independently determine its height. This allows you to spread the calendar months evenly across the screen while a `daySize` value of `Square` if you want square day content or `SeventhWidth` if you want to set a specific height value for the day content. -**The following attributes are available for ONLY `WeekCalendarView` class:** - -- **weekHeaderResource**: The xml resource that is inflated and used as a header for every week. - -- **weekFooterResource**: The xml resource that is inflated and used as a footer for every week. - -- **weekViewClass**: A ViewGroup that is instantiated and used as the container for each week. This class must have a constructor which takes only a Context. You should exclude the name and constructor of this class from code obfuscation if enabled. - ### Properties All the respective XML attributes listed above are also available as properties of the CalendarView and WeekCalendarView classes so they can be set via code. So in addition to those, we have: