-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource,androidx.core.view.NestedScrollingChild,androidx.core.view.NestedScrollingChild2,androidx.core.view.NestedScrollingChild3,androidx.core.view.ScrollingView
public class WeekCalendarView extends RecyclerView
A week-based calendar view.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WeekCalendarView(Context context)WeekCalendarView(Context context, AttributeSet attrs)WeekCalendarView(Context context, AttributeSet attrs, Integer defStyleAttr)
-
Method Summary
Modifier and Type Method Description final WeekDayBinder<?>getDayBinder()The WeekDayBinder instance used for managing day cell view creation and reuse. final UnitsetDayBinder(WeekDayBinder<?> dayBinder)final WeekHeaderFooterBinder<?>getWeekHeaderBinder()The WeekHeaderFooterBinder instance used for managing the header views shown above each week on the calendar. final UnitsetWeekHeaderBinder(WeekHeaderFooterBinder<?> weekHeaderBinder)final WeekHeaderFooterBinder<?>getWeekFooterBinder()The WeekHeaderFooterBinder instance used for managing the footer views shown below each week on the calendar. final UnitsetWeekFooterBinder(WeekHeaderFooterBinder<?> weekFooterBinder)final Function1<Week, Unit>getWeekScrollListener()Called when the calendar scrolls to a new week. final UnitsetWeekScrollListener(Function1<Week, Unit> weekScrollListener)Called when the calendar scrolls to a new week. final IntegergetDayViewResource()The xml resource that is inflated and used as the day cell view. final UnitsetDayViewResource(Integer dayViewResource)final IntegergetWeekHeaderResource()The xml resource that is inflated and used as a header for each week. final UnitsetWeekHeaderResource(Integer weekHeaderResource)final IntegergetWeekFooterResource()The xml resource that is inflated and used as a footer for each week. final UnitsetWeekFooterResource(Integer weekFooterResource)final StringgetWeekViewClass()The fully qualified class name of a ViewGroup that is instantiated and used as the container for each week. final UnitsetWeekViewClass(String weekViewClass)final BooleangetScrollPaged()The scrolling behavior of the calendar. final UnitsetScrollPaged(Boolean scrollPaged)final DaySizegetDaySize()Determines how the size of each day on the calendar is calculated. final UnitsetDaySize(DaySize daySize)final MarginValuesgetWeekMargins()The margins, in pixels to be applied each week view. final UnitsetWeekMargins(MarginValues weekMargins)final LayoutHelpergetLayoutHelper()Helper class with methods that can be overridden in the internal layout manager. final UnitsetLayoutHelper(LayoutHelper layoutHelper)Helper class with methods that can be overridden in the internal layout manager. final UnitscrollToWeek(LocalDate date)Scroll to the week containing this date on the calendar. final UnitscrollToWeek(WeekDay day)Scroll to the week containing this WeekDay on the calendar. final UnitsmoothScrollToWeek(LocalDate date)Scroll to the week containing this date on the calendar using a smooth scrolling animation. final UnitsmoothScrollToWeek(WeekDay day)Scroll to the week containing this WeekDay on the calendar using a smooth scrolling animation. final UnitscrollToDate(LocalDate date)Scroll to a specific date. final UnitsmoothScrollToDate(LocalDate date)Scroll to a specific date using a smooth scrolling animation. final UnitscrollToDay(WeekDay day)Scroll to a specific WeekDay. final UnitsmoothScrollToDay(WeekDay day)Scroll to a specific WeekDay using a smooth scrolling animation. final UnitnotifyDateChanged(LocalDate date)Notify the calendar to reload the cell for this date. final UnitnotifyDayChanged(WeekDay day)Notify the calendar to reload the cell for this WeekDay. final UnitnotifyWeekChanged(LocalDate date)Notify the calendar to reload the view for the week containing this date. final UnitnotifyWeekChanged(WeekDay day)Notify the calendar to reload the view for the week containing this WeekDay. final UnitnotifyCalendarChanged()Notify the calendar to reload all weeks. final WeekfindFirstVisibleWeek()Find the first visible week on the calendar. final WeekfindLastVisibleWeek()Find the last visible week on the calendar. final WeekDayfindFirstVisibleDay()Find the first visible day on the calendar. final WeekDayfindLastVisibleDay()Find the last visible day on the calendar. final Unitsetup(LocalDate startDate, LocalDate endDate, DayOfWeek firstDayOfWeek)Setup the calendar. final UnitupdateWeekData(LocalDate startDate, LocalDate endDate, DayOfWeek firstDayOfWeek)Update the calendar's start date or end date or the first day of week. final UnitupdateWeekData(LocalDate startDate, LocalDate endDate)Update the calendar's start date or end date or the first day of week. final UnitupdateWeekData(LocalDate startDate)Update the calendar's start date or end date or the first day of week. final UnitupdateWeekData()Update the calendar's start date or end date or the first day of week. -
Methods inherited from class android.view.ViewGroup
addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, checkInputConnectionProxy, clearAnimation, clearPendingCredentialRequest, clearViewTranslationCallback, computeScroll, computeSystemWindowInsets, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedPrePerformAccessibilityAction, drawableHotspotChanged, findOnBackInvokedDispatcher, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateDisplayHash, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAllowedHandwritingDelegatePackageName, getAllowedHandwritingDelegatorPackageName, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContentSensitivity, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getFrameContentVelocity, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHandwritingBoundsOffsetBottom, getHandwritingBoundsOffsetLeft, getHandwritingBoundsOffsetRight, getHandwritingBoundsOffsetTop, getHandwritingDelegateFlags, getHandwritingDelegatorCallback, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getImportantForContentCapture, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPendingCredentialCallback, getPendingCredentialRequest, getPivotX, getPivotY, getPointerIcon, getPreferKeepClearRects, getReceiveContentMimeTypes, getRequestedFrameRate, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootSurfaceControl, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollCaptureHint, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateDescription, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSupplementalDescription, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchDelegate, getTouchables, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTranslationResponse, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowInsetsController, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasOnClickListeners, hasOnLongClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityDataSensitive, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAutoHandwritingEnabled, isClickable, isContentSensitive, isContextClickable, isCredential, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHandwritingDelegate, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isImportantForContentCapture, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPreferKeepClear, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollContainer, isScrollbarFadingEnabled, isSelected, isShowingLayoutBounds, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onCreateViewTranslationRequest, onCreateVirtualViewTranslationRequests, onDisplayHint, onDragEvent, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideContentCaptureStructure, onProvideStructure, onProvideVirtualStructure, onReceiveContent, onRtlPropertiesChanged, onScreenStateChanged, onScrollCaptureSearch, onScrollChanged, onSetAlpha, onStartTemporaryDetach, onTrackballEvent, onViewTranslationResponse, onVirtualViewTranslationResponses, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, performReceiveContent, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, reportAppJankStats, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requestUnbufferedDispatch, requireViewById, resetPivot, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, sendAccessibilityEvent, setAccessibilityDataSensitive, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAllowClickWhenDisabled, setAllowedHandwritingDelegatePackage, setAllowedHandwritingDelegatorPackage, setAlpha, setAnimation, setAnimationMatrix, setAutoHandwritingEnabled, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContentSensitivity, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundGravity, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setFrameContentVelocity, setHandwritingBoundsOffsets, setHandwritingDelegateFlags, setHandwritingDelegatorCallback, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setImportantForContentCapture, setIsCredential, setIsHandwritingDelegate, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnReceiveContentListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPendingCredentialRequest, setPivotX, setPivotY, setPointerIcon, setPreferKeepClear, setPreferKeepClearRects, setPressed, setRenderEffect, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollBarSize, setScrollBarStyle, setScrollCaptureCallback, setScrollCaptureHint, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setScrollbarFadingEnabled, setSelected, setSoundEffectsEnabled, setStateDescription, setStateListAnimator, setSupplementalDescription, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setViewTranslationCallback, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDraw -
Methods inherited from class com.kizitonwose.calendar.view.WeekCalendarView
absorbGlows, addFocusables, addItemDecoration, addItemDecoration, addOnChildAttachStateChangeListener, addOnItemTouchListener, addOnScrollListener, addRecyclerListener, animateAppearance, animateDisappearance, assertInLayoutOrScroll, assertNotInLayoutOrScroll, canReuseUpdatedViewHolder, checkLayoutParams, clearOldPositions, clearOnChildAttachStateChangeListeners, clearOnScrollListeners, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, considerReleasingGlowsOnScroll, consumeFlingInHorizontalStretch, consumeFlingInVerticalStretch, consumePendingUpdateOperations, defaultOnMeasure, dispatchChildAttached, dispatchChildDetached, dispatchKeyEvent, dispatchLayout, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPreScroll, dispatchNestedPreScroll, dispatchNestedScroll, dispatchNestedScroll, dispatchNestedScroll, dispatchOnScrollStateChanged, dispatchOnScrolled, dispatchPendingImportantForAccessibilityChanges, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, draw, drawChild, ensureBottomGlow, ensureLeftGlow, ensureRightGlow, ensureTopGlow, exceptionLabel, fillRemainingScrollValues, findChildViewUnder, findContainingItemView, findContainingViewHolder, findViewHolderForAdapterPosition, findViewHolderForItemId, findViewHolderForLayoutPosition, findViewHolderForPosition, findViewHolderForPosition, fling, flingNoThresholdCheck, focusSearch, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getAdapter, getAdapterPositionInRecyclerView, getBaseline, getChangedHolderKey, getChildAdapterPosition, getChildDrawingOrder, getChildItemId, getChildLayoutPosition, getChildPosition, getChildViewHolder, getClipToPadding, getCompatAccessibilityDelegate, getDecoratedBoundsWithMargins, getEdgeEffectFactory, getItemAnimator, getItemDecorInsetsForChild, getItemDecorationAt, getItemDecorationCount, getLayoutManager, getMaxFlingVelocity, getMinFlingVelocity, getNanoTime, getOnFlingListener, getPreserveFocusAfterLayout, getRecycledViewPool, getScrollState, hasFixedSize, hasNestedScrollingParent, hasNestedScrollingParent, hasPendingAdapterUpdates, initAdapterManager, initFastScroller, invalidateGlows, invalidateItemDecorations, isAccessibilityEnabled, isAnimating, isAttachedToWindow, isComputingLayout, isLayoutFrozen, isLayoutSuppressed, isNestedScrollingEnabled, jumpToPositionForSmoothScroller, markItemDecorInsetsDirty, markKnownViewsInvalid, nestedScrollBy, offsetChildrenHorizontal, offsetChildrenVertical, offsetPositionRecordsForInsert, offsetPositionRecordsForMove, offsetPositionRecordsForRemove, onAttachedToWindow, onChildAttachedToWindow, onChildDetachedFromWindow, onDetachedFromWindow, onDraw, onEnterLayoutOrScroll, onExitLayoutOrScroll, onExitLayoutOrScroll, onGenericMotionEvent, onInterceptTouchEvent, onLayout, onMeasure, onRequestFocusInDescendants, onRestoreInstanceState, onSaveInstanceState, onScrollStateChanged, onScrolled, onSizeChanged, onTouchEvent, postAnimationRunner, processDataSetCompletelyChanged, recordAnimationInfoIfBouncedHiddenView, removeAndRecycleViews, removeAnimatingView, removeDetachedView, removeItemDecoration, removeItemDecorationAt, removeOnChildAttachStateChangeListener, removeOnItemTouchListener, removeOnScrollListener, removeRecyclerListener, repositionShadowingViews, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestLayout, saveOldPositions, scrollBy, scrollByInternal, scrollStep, scrollTo, scrollToPosition, sendAccessibilityEventUnchecked, setAccessibilityDelegateCompat, setAdapter, setChildDrawingOrderCallback, setChildImportantForAccessibilityInternal, setClipToPadding, setEdgeEffectFactory, setHasFixedSize, setItemAnimator, setItemViewCacheSize, setLayoutFrozen, setLayoutManager, setLayoutTransition, setNestedScrollingEnabled, setOnFlingListener, setOnScrollListener, setPreserveFocusAfterLayout, setRecycledViewPool, setRecyclerListener, setScrollState, setScrollingTouchSlop, setViewCacheExtension, shouldDeferAccessibilityEvent, smoothScrollBy, smoothScrollBy, smoothScrollBy, smoothScrollBy, smoothScrollToPosition, startInterceptRequestLayout, startNestedScroll, startNestedScroll, stopInterceptRequestLayout, stopNestedScroll, stopNestedScroll, stopScroll, suppressLayout, swapAdapter, viewRangeUpdate -
Methods inherited from class androidx.recyclerview.widget.RecyclerView
addChildrenForAccessibility, addExtraDataToAccessibilityNodeInfo, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchCreateViewTranslationRequest, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchScrollCaptureSearch, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowInsetsAnimationEnd, dispatchWindowInsetsAnimationPrepare, dispatchWindowInsetsAnimationProgress, dispatchWindowInsetsAnimationStart, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, endViewTransition, findFocus, findOnBackInvokedDispatcherForChild, findViewsWithText, focusableViewAvailable, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildWithMargins, measureChildren, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onCreateDrawableState, onDescendantInvalidated, onInterceptHoverEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, propagateRequestedFrameRate, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setRequestedFrameRate, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, setWindowInsetsAnimationCallback, shouldDelayChildPressedState, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
WeekCalendarView
WeekCalendarView(Context context)
-
WeekCalendarView
WeekCalendarView(Context context, AttributeSet attrs)
-
WeekCalendarView
WeekCalendarView(Context context, AttributeSet attrs, Integer defStyleAttr)
-
-
Method Detail
-
getDayBinder
final WeekDayBinder<?> getDayBinder()
The WeekDayBinder instance used for managing day cell view creation and reuse.
-
setDayBinder
final Unit setDayBinder(WeekDayBinder<?> dayBinder)
-
getWeekHeaderBinder
final WeekHeaderFooterBinder<?> getWeekHeaderBinder()
The WeekHeaderFooterBinder instance used for managing the header views shown above each week on the calendar.
-
setWeekHeaderBinder
final Unit setWeekHeaderBinder(WeekHeaderFooterBinder<?> weekHeaderBinder)
-
getWeekFooterBinder
final WeekHeaderFooterBinder<?> getWeekFooterBinder()
The WeekHeaderFooterBinder instance used for managing the footer views shown below each week on the calendar.
-
setWeekFooterBinder
final Unit setWeekFooterBinder(WeekHeaderFooterBinder<?> weekFooterBinder)
-
getWeekScrollListener
final Function1<Week, Unit> getWeekScrollListener()
Called when the calendar scrolls to a new week. Mostly beneficial if scrollPaged is
true.
-
setWeekScrollListener
final Unit setWeekScrollListener(Function1<Week, Unit> weekScrollListener)
Called when the calendar scrolls to a new week. Mostly beneficial if scrollPaged is
true.
-
getDayViewResource
final Integer getDayViewResource()
The xml resource that is inflated and used as the day cell view. This must be provided.
-
setDayViewResource
final Unit setDayViewResource(Integer dayViewResource)
-
getWeekHeaderResource
final Integer getWeekHeaderResource()
The xml resource that is inflated and used as a header for each week. Set zero to disable.
-
setWeekHeaderResource
final Unit setWeekHeaderResource(Integer weekHeaderResource)
-
getWeekFooterResource
final Integer getWeekFooterResource()
The xml resource that is inflated and used as a footer for each week. Set zero to disable.
-
setWeekFooterResource
final Unit setWeekFooterResource(Integer weekFooterResource)
-
getWeekViewClass
final String getWeekViewClass()
-
setWeekViewClass
final Unit setWeekViewClass(String weekViewClass)
-
getScrollPaged
final Boolean getScrollPaged()
The scrolling behavior of the calendar. If
true, the calendar will snap to the nearest week after a scroll or swipe action. Iffalse, the calendar scrolls normally.
-
setScrollPaged
final Unit setScrollPaged(Boolean scrollPaged)
-
getDaySize
final DaySize getDaySize()
Determines how the size of each day on the calendar is calculated. See the DaySize class documentation to understand each value.
-
setDaySize
final Unit setDaySize(DaySize daySize)
-
getWeekMargins
final MarginValues getWeekMargins()
The margins, in pixels to be applied each week view. this can be used to add a space between two weeks.
-
setWeekMargins
final Unit setWeekMargins(MarginValues weekMargins)
-
getLayoutHelper
final LayoutHelper getLayoutHelper()
Helper class with methods that can be overridden in the internal layout manager.
-
setLayoutHelper
final Unit setLayoutHelper(LayoutHelper layoutHelper)
Helper class with methods that can be overridden in the internal layout manager.
-
scrollToWeek
final Unit scrollToWeek(LocalDate date)
Scroll to the week containing this date on the calendar. This instantly shows the view for the week without any animations. For a smooth scrolling effect, use smoothScrollToWeek
-
scrollToWeek
final Unit scrollToWeek(WeekDay day)
Scroll to the week containing this WeekDay on the calendar. This instantly shows the view for the week without any animations. For a smooth scrolling effect, use smoothScrollToWeek
-
smoothScrollToWeek
final Unit smoothScrollToWeek(LocalDate date)
Scroll to the week containing this date on the calendar using a smooth scrolling animation. Just like scrollToWeek, but with a smooth scrolling animation.
-
smoothScrollToWeek
final Unit smoothScrollToWeek(WeekDay day)
Scroll to the week containing this WeekDay on the calendar using a smooth scrolling animation. Just like scrollToWeek, but with a smooth scrolling animation.
-
scrollToDate
final Unit scrollToDate(LocalDate date)
Scroll to a specific date. This brings the date cell view's left edge to the left edge of the WeekCalendarView. No animation is performed. For a smooth scrolling effect, use smoothScrollToDate.
-
smoothScrollToDate
final Unit smoothScrollToDate(LocalDate date)
Scroll to a specific date using a smooth scrolling animation. Just like scrollToDate, but with a smooth scrolling animation.
-
scrollToDay
final Unit scrollToDay(WeekDay day)
Scroll to a specific WeekDay. This brings the date cell view's left edge to the left edge of the WeekCalendarView. No animation is performed. For a smooth scrolling effect, use smoothScrollToDay.
-
smoothScrollToDay
final Unit smoothScrollToDay(WeekDay day)
Scroll to a specific WeekDay using a smooth scrolling animation. Just like scrollToDay, but with a smooth scrolling animation.
-
notifyDateChanged
final Unit notifyDateChanged(LocalDate date)
Notify the calendar to reload the cell for this date. This causes WeekDayBinder.bind to be called with the ViewContainer at this position. Use this to reload a date cell on the Calendar.
-
notifyDayChanged
final Unit notifyDayChanged(WeekDay day)
Notify the calendar to reload the cell for this WeekDay. This causes WeekDayBinder.bind to be called with the ViewContainer at this position. Use this to reload a date cell on the Calendar.
-
notifyWeekChanged
final Unit notifyWeekChanged(LocalDate date)
Notify the calendar to reload the view for the week containing this date.
This causes the following sequence of events:
WeekHeaderFooterBinder.bind will be called for this week's header view if available.
WeekDayBinder.bind will be called for all dates in the week.
WeekHeaderFooterBinder.bind will be called for this week's footer view if available.
-
notifyWeekChanged
final Unit notifyWeekChanged(WeekDay day)
Notify the calendar to reload the view for the week containing this WeekDay.
This causes the following sequence of events:
WeekHeaderFooterBinder.bind will be called for this week's header view if available.
WeekDayBinder.bind will be called for all dates in the week.
WeekHeaderFooterBinder.bind will be called for this week's footer view if available.
-
notifyCalendarChanged
final Unit notifyCalendarChanged()
Notify the calendar to reload all weeks.
-
findFirstVisibleWeek
final Week findFirstVisibleWeek()
Find the first visible week on the calendar.
-
findLastVisibleWeek
final Week findLastVisibleWeek()
Find the last visible week on the calendar.
-
findFirstVisibleDay
final WeekDay findFirstVisibleDay()
Find the first visible day on the calendar. This is the day at the top-left corner of the calendar.
-
findLastVisibleDay
final WeekDay findLastVisibleDay()
Find the last visible day on the calendar. This is the day at the bottom-right corner of the calendar.
-
setup
final Unit setup(LocalDate startDate, LocalDate endDate, DayOfWeek firstDayOfWeek)
Setup the calendar. See updateWeekData to update these values.
- Parameters:
startDate- A date in the first week on the calendar.endDate- A date in the last week on the calendar.firstDayOfWeek- A DayOfWeek to be the first day of week.
-
updateWeekData
@JvmOverloads() final Unit updateWeekData(LocalDate startDate, LocalDate endDate, DayOfWeek firstDayOfWeek)
Update the calendar's start date or end date or the first day of week. This can be called only if you have previously called setup. The calendar can handle really large date ranges so you may want to setup the calendar with a large date range instead of updating the range frequently.
-
updateWeekData
@JvmOverloads() final Unit updateWeekData(LocalDate startDate, LocalDate endDate)
Update the calendar's start date or end date or the first day of week. This can be called only if you have previously called setup. The calendar can handle really large date ranges so you may want to setup the calendar with a large date range instead of updating the range frequently.
-
updateWeekData
@JvmOverloads() final Unit updateWeekData(LocalDate startDate)
Update the calendar's start date or end date or the first day of week. This can be called only if you have previously called setup. The calendar can handle really large date ranges so you may want to setup the calendar with a large date range instead of updating the range frequently.
-
updateWeekData
@JvmOverloads() final Unit updateWeekData()
Update the calendar's start date or end date or the first day of week. This can be called only if you have previously called setup. The calendar can handle really large date ranges so you may want to setup the calendar with a large date range instead of updating the range frequently.
-
-
-
-