public class AllDayEventsViewStyle extends Object
AllDayEventsView
.Constructor and Description |
---|
AllDayEventsViewStyle(CalendarDayView owner)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAllDayGravity()
Gets the gravity for the all day label that notates the all day events container.
|
int |
getAllDayOffsetHorizontal()
Gets a value in pixels which represents the horizontal offset for
the all day label that notates the all day events container.
|
int |
getAllDayOffsetVertical()
Gets a value in pixels which represents the vertical offset for
the all day label that notates the all day events container.
|
String |
getAllDayText()
Gets the text for the all day label that notates the all day events container.
|
int |
getAllDayTextColor()
Gets the text color for the all day label that notates the all day events container.
|
boolean |
getAllDayTextIsVisible()
Gets a value indicating whether the all day label that notates the all day
events container should be visible or not.
|
int |
getAllDayTextSize()
Gets a value in scaled pixels (sp) that represents the text size used by
the all day label that notates the all day events container.
|
int |
getBackgroundColor()
Gets the background color for all day events container.
|
int |
getElevation()
Gets the elevation for all day events container.
|
int |
getEventsSpacing()
Gets a value in pixels that should be used between the all day events in
the all day events view.
|
int |
getMaxColumns()
Gets the maximum number of columns that will be used to layout the all day events.
|
float |
getMaxVisibleEventRows()
Gets a value that represents how many rows will be visible in the all day events view
(given that there are enough events to fill these rows).
|
int |
getMinimumHeight()
Gets the minimum height for all day events container.
|
void |
setAllDayGravity(int allDayGravity)
Sets the gravity for the all day label that notates the all day events container.
|
void |
setAllDayOffsetHorizontal(int allDayOffsetHorizontal)
Sets a value in pixels which represents the horizontal offset for
the all day label that notates the all day events container.
|
void |
setAllDayOffsetVertical(int allDayOffsetVertical)
Sets a value in pixels which represents the vertical offset for
the all day label that notates the all day events container.
|
void |
setAllDayText(String allDayText)
Sets the text for the all day label that notates the all day events container.
|
void |
setAllDayTextColor(int allDayTextColor)
Sets the text color for the all day label that notates the all day events container.
|
void |
setAllDayTextIsVisible(boolean allDayTextIsVisible)
Sets a value indicating whether the all day label that notates the all day
events container should be visible or not.
|
void |
setAllDayTextSize(int allDayTextSize)
Sets a value in scaled pixels (sp) that represents the text size used by
the all day label that notates the all day events container.
|
void |
setBackgroundColor(int backgroundColor)
Sets a background color for all day events container.
|
void |
setElevation(int elevation)
Sets the elevation for all day events container.
|
void |
setEventsSpacing(int eventsSpacing)
Sets a value in pixels that will be used between the all day events in
the all day events view.
|
void |
setMaxColumns(int maxColumns)
Sets the maximum number of columns that will be used to layout the all day events.
|
void |
setMaxVisibleEventRows(float maxVisibleEventRows)
Sets a value that represents how many rows will be visible in the all day events view
(given that there are enough events to fill these rows).
|
void |
setMinimumHeight(int minimumHeight)
Sets a value for minimum height for all day events container.
|
public AllDayEventsViewStyle(CalendarDayView owner)
owner
- the dayView that will use this stylepublic int getBackgroundColor()
CalendarDayViewItem.makeAllDayEventsContainer(Context)
public void setBackgroundColor(int backgroundColor)
backgroundColor
- the new all day views container background colorCalendarDayViewItem.makeAllDayEventsContainer(Context)
public int getMinimumHeight()
CalendarDayViewItem.makeAllDayEventsContainer(Context)
public void setMinimumHeight(int minimumHeight)
minimumHeight
- the new minimum height for day views containerCalendarDayViewItem.makeAllDayEventsContainer(Context)
public int getElevation()
CalendarDayViewItem.makeAllDayEventsContainer(Context)
public void setElevation(int elevation)
elevation
- the current elevation for day views containerCalendarDayViewItem.makeAllDayEventsContainer(Context)
public String getAllDayText()
CalendarDayViewItem.makeAllDayLabel(Context)
public void setAllDayText(String allDayText)
allDayText
- the new text for the all day labelCalendarDayViewItem.makeAllDayLabel(Context)
public int getAllDayGravity()
CalendarDayViewItem.makeAllDayLabel(Context)
public void setAllDayGravity(int allDayGravity)
allDayGravity
- the new gravity for the all day labelCalendarDayViewItem.makeAllDayLabel(Context)
public int getAllDayOffsetHorizontal()
CalendarDayViewItem.makeAllDayLabel(Context)
public void setAllDayOffsetHorizontal(int allDayOffsetHorizontal)
allDayOffsetHorizontal
- the new horizontal offset for the all day labelCalendarDayViewItem.makeAllDayLabel(Context)
public int getAllDayOffsetVertical()
CalendarDayViewItem.makeAllDayLabel(Context)
public void setAllDayOffsetVertical(int allDayOffsetVertical)
allDayOffsetVertical
- the new vertical offset for the all day labelCalendarDayViewItem.makeAllDayLabel(Context)
public int getAllDayTextColor()
CalendarDayViewItem.makeAllDayLabel(Context)
public void setAllDayTextColor(int allDayTextColor)
allDayTextColor
- the new text color for the all day labelCalendarDayViewItem.makeAllDayLabel(Context)
public boolean getAllDayTextIsVisible()
CalendarDayViewItem.makeAllDayLabel(Context)
public void setAllDayTextIsVisible(boolean allDayTextIsVisible)
allDayTextIsVisible
- whether the the all day label should be visibleCalendarDayViewItem.makeAllDayLabel(Context)
public int getAllDayTextSize()
CalendarDayViewItem.makeAllDayLabel(Context)
public void setAllDayTextSize(int allDayTextSize)
allDayTextSize
- the all day label text size in scaled pixels (sp)CalendarDayViewItem.makeAllDayLabel(Context)
public int getMaxColumns()
CalendarDayViewItem.makeAllDayEventsView(Context)
public void setMaxColumns(int maxColumns)
maxColumns
- the max columns used by the all day events viewIllegalArgumentException
- when attempted to set a value less than 1CalendarDayViewItem.makeAllDayEventsView(Context)
public float getMaxVisibleEventRows()
CalendarDayViewItem.makeAllDayEventsView(Context)
public void setMaxVisibleEventRows(float maxVisibleEventRows)
maxVisibleEventRows
- the max visible event rows in the all day events viewCalendarDayViewItem.makeAllDayEventsView(Context)
public int getEventsSpacing()
CalendarDayViewItem.makeAllDayEventsView(Context)
public void setEventsSpacing(int eventsSpacing)
eventsSpacing
- the spacing between all day events viewsCalendarDayViewItem.makeAllDayEventsView(Context)