Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Aug 3, 2024
1 parent 16391af commit 6336697
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/View.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ calendarView.dayBinder = object : MonthDayBinder<DayViewContainer> {

`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.
Expand All @@ -399,14 +407,6 @@ calendarView.dayBinder = object : MonthDayBinder<DayViewContainer> {
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:
Expand Down

0 comments on commit 6336697

Please sign in to comment.