EphemerisCalendarView

class EphemerisCalendarView @JvmOverloads constructor(    context: Context,     attrs: AttributeSet? = null,     defStyleAttr: Int = 0) : FrameLayout

A android.view.View that displays the Ephemeris calendar. You must set a dateBinder and pageSource for the calendar to work correctly.

Constructors

Link copied to clipboard
fun EphemerisCalendarView(    context: Context,     attrs: AttributeSet? = null,     defStyleAttr: Int = 0)

Functions

Link copied to clipboard
fun animateScrollToDate(date: LocalDate)

Animates scrolling the calendar to the page with the given date.

Link copied to clipboard
open override fun getClipToPadding(): Boolean
Link copied to clipboard
open override fun getPaddingEnd(): Int
Link copied to clipboard
open override fun getPaddingLeft(): Int
Link copied to clipboard
open override fun getPaddingRight(): Int
Link copied to clipboard
open override fun getPaddingStart(): Int
Link copied to clipboard
fun notifyDateChanged(date: LocalDate)

Notifies the calendar that a single date has changed, and should be re-bound.

Link copied to clipboard
fun notifyDateRangeChanged(dates: ClosedRange<LocalDate>)

Notifies the calendar that a range of dates has changed, and should be re-bound.

Link copied to clipboard
fun scrollToDate(date: LocalDate)

Scrolls the calendar to the page with the given date.

Link copied to clipboard
open override fun setClipToPadding(clipToPadding: Boolean)
Link copied to clipboard
fun setOnDisplayedDateRangeChangeListener(listener: DateRangeChangeListener)

Sets a listener to be notified when displayedDateRange changes.

Link copied to clipboard
open override fun setPadding(    left: Int,     top: Int,     right: Int,     bottom: Int)
Link copied to clipboard
open override fun setPaddingRelative(    start: Int,     top: Int,     end: Int,     bottom: Int)

Properties

Link copied to clipboard
var animateHeight: Boolean = false

Whether height changes should be animated for the calendar view. WARNING: This applies a LayoutTransition to the parent ViewGroup. This might have unintended side-effects.

Link copied to clipboard
var dateBinder: CalendarDateBinder<*>

The current CalendarDateBinder used to bind date cells. Setting this will cause the calendar view to redraw itself.

Link copied to clipboard
lateinit val displayedDateRange: ClosedRange<LocalDate>

The date range currently displayed by the calendar.

Link copied to clipboard
var pageSource: CalendarPageSource

The CalendarPageSource used to build and display pages in the calendar view. Setting this will cause the calendar to recreate it's views.

Sources

Link copied to clipboard