-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum DaySize extends Enum<DaySize>
Determines how the size of each day on the calendar is calculated.
These values work independently in the CalendarView and WeekCalendarView classes. However, for the YearCalendarView class, these values work together with the MonthHeight.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FreeFormThe day is allowed to determine its width and height by setting specific values or using ViewGroup.LayoutParams.WRAP_CONTENT.
SeventhWidthEach day will have its width matching the width of the calendar month/week divided by 7. This day is allowed to determine its height by setting a specific value or using ViewGroup.LayoutParams.WRAP_CONTENT.
RectangleEach day will have its width matching the width of the calendar month/week divided by 7, and its height matching the height of the calendar divided by the number of weeks in the index - could be 4, 5 or 6 for the month calendar, and 1 for the week calendar. Use this if you want each month or week to fill the parent's width and height.
SquareEach day will have both width and height matching the width of the calendar month/week divided by 7.
-
Method Summary
Modifier and Type Method Description final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getOrdinal
final Integer getOrdinal()
-
-
-
-