Version 2.10 is available as backup in the #1st post.
Update
- 2.11
- Designer Property "Expanded" a better handling of the view
- If True the full height is used to display the view expanded
- IF False the full height is used to display the view collapsed
- Old Handling:
- If True the full height is used to display the view collapsed and from the body height the expanded heihgt was calculated
- Designer Property "BodyItemHeightInPercentage" Removed
- was a poor indicator of how big the header is
- Add Desinger Property "HeaderHeight" - Determines the size of the header. The larger the number the less space the items have in the body
- Add Designer Property "KeepSelectedDate"
- Add Designer Porperty "BottomHeight" - the height of the drag-panel on the bottom, to expand or collapse the view
- Add Designer Property "ShowOtherMonths" - Only in MonthView - set it to False if you dont show the days from the next or previous month
- Add Expand - Expands the view
- Add Close - Collsaps the view
- B4J BugFixes
Updated example project are in the #1st post.
Designer Property "Expanded"
If "True" the calendar is expanded.
If "False" the calendar is collapsed.
Expanded = False
IF False then the full view height is used to show the calendar collapsed.
Based on this the expanded view height are calculated, if you expand the view.
Expanded = True
If True then the full view height is used to show the calendar expanded.
Based on this the collapsed view height are calculated, if you collapse the view.
Designer Property "HeaderHeight"
Now you can define how big the header should be and is no longer defined in percent.
50 = 50dip
Designer Property "BottomHeight"
Now you can define in the designer how big the drag panel is, to expand or collapse the view.
Designer Property "KeepSelectedDate"
WeekView: The same week day is selected if you switch to the next week e.g. Monday 05.07.201-> Monday 12.07.2021 - MonthView: The same date is selected if you switch to the next month e.g 22.07.2021-> 22.08.2021
Designer Property "ShowOtherMonths"
Only in MonthView - set it to False if you dont show the days from the next or previous month
Expand and Close
You can now expand or collapse the view per code.