public class DayViewFacade
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addSpan(java.lang.Object span)
Add a span to the entire text of a day
|
boolean |
areDaysDisabled()
Are days from this facade disabled
|
void |
setBackgroundDrawable(android.graphics.drawable.Drawable drawable)
Set a drawable to draw behind everything else
|
void |
setDaysDisabled(boolean daysDisabled)
Set days to be in a disabled state, or re-enabled.
|
void |
setSelectionDrawable(android.graphics.drawable.Drawable drawable)
Set a custom selection drawable
TODO: define states that can/should be used in StateListDrawables
|
public void setBackgroundDrawable(@NonNull android.graphics.drawable.Drawable drawable)
drawable
- Drawable to draw behind everythingpublic void setSelectionDrawable(@NonNull android.graphics.drawable.Drawable drawable)
drawable
- the drawable for selectionpublic void addSpan(@NonNull java.lang.Object span)
span
- text span instancepublic void setDaysDisabled(boolean daysDisabled)
Set days to be in a disabled state, or re-enabled.
Note, passing true here will not override minimum and maximum dates, if set. This will only re-enable disabled dates.
daysDisabled
- true to disable days, false to re-enable dayspublic boolean areDaysDisabled()