SmoothCalendarLayoutManager

open class SmoothCalendarLayoutManager(context: Context?, orientation: Int, reverseLayout: Boolean) : LinearLayoutManager

Layout manager for MaterialCalendar that slows the scroll down to appear smoother for months. Copied from Material Library Required for updated date picker EnterpriseDatePicker to work

Constructors

SmoothCalendarLayoutManager
Link copied to clipboard
fun SmoothCalendarLayoutManager(context: Context?, orientation: Int, reverseLayout: Boolean)

Types

Companion
Link copied to clipboard
object Companion

Inherited properties

mAnchorInfo
Link copied to clipboard
val mAnchorInfo: LinearLayoutManager.AnchorInfo
mAutoMeasure
Link copied to clipboard
val mAutoMeasure: Boolean
mChildHelper
Link copied to clipboard
val mChildHelper: ChildHelper
mHorizontalBoundCheck
Link copied to clipboard
val mHorizontalBoundCheck: ViewBoundsCheck
mIsAttachedToWindow
Link copied to clipboard
val mIsAttachedToWindow: Boolean
mOrientation
Link copied to clipboard
val mOrientation: Int
mOrientationHelper
Link copied to clipboard
val mOrientationHelper: OrientationHelper
mPendingSavedState
Link copied to clipboard
val mPendingSavedState: LinearLayoutManager.SavedState
mPendingScrollPosition
Link copied to clipboard
val mPendingScrollPosition: Int
mPendingScrollPositionOffset
Link copied to clipboard
val mPendingScrollPositionOffset: Int
mPrefetchMaxCountObserved
Link copied to clipboard
val mPrefetchMaxCountObserved: Int
mPrefetchMaxObservedInInitialPrefetch
Link copied to clipboard
val mPrefetchMaxObservedInInitialPrefetch: Boolean
mRecyclerView
Link copied to clipboard
val mRecyclerView: RecyclerView
mRequestedSimpleAnimations
Link copied to clipboard
val mRequestedSimpleAnimations: Boolean
mShouldReverseLayout
Link copied to clipboard
val mShouldReverseLayout: Boolean
mSmoothScroller
Link copied to clipboard
val mSmoothScroller: RecyclerView.SmoothScroller?
mVerticalBoundCheck
Link copied to clipboard
val mVerticalBoundCheck: ViewBoundsCheck

Functions

smoothScrollToPosition
Link copied to clipboard
open override fun smoothScrollToPosition(recyclerView: RecyclerView, state: RecyclerView.State, position: Int)

Inherited functions

addDisappearingView
Link copied to clipboard
open fun addDisappearingView(p0: View)
open fun addDisappearingView(p0: View, p1: Int)
addView
Link copied to clipboard
open fun addView(p0: View)
open fun addView(p0: View, p1: Int)
assertInLayoutOrScroll
Link copied to clipboard
open fun assertInLayoutOrScroll(p0: String)
assertNotInLayoutOrScroll
Link copied to clipboard
open override fun assertNotInLayoutOrScroll(p0: String)
attachView
Link copied to clipboard
open fun attachView(@NonNull() p0: View)
open fun attachView(@NonNull() p0: View, p1: Int)
open fun attachView(@NonNull() p0: View, p1: Int, p2: RecyclerView.LayoutParams)
calculateExtraLayoutSpace
Link copied to clipboard
open fun calculateExtraLayoutSpace(@NonNull() p0: RecyclerView.State, @NonNull() p1: IntArray)
calculateItemDecorationsForChild
Link copied to clipboard
open fun calculateItemDecorationsForChild(@NonNull() p0: View, @NonNull() p1: Rect)
canScrollHorizontally
Link copied to clipboard
open override fun canScrollHorizontally(): Boolean
canScrollVertically
Link copied to clipboard
open override fun canScrollVertically(): Boolean
checkLayoutParams
Link copied to clipboard
open fun checkLayoutParams(p0: RecyclerView.LayoutParams): Boolean
collectAdjacentPrefetchPositions
Link copied to clipboard
collectInitialPrefetchPositions
Link copied to clipboard
open override fun collectInitialPrefetchPositions(p0: Int, p1: RecyclerView.LayoutManager.LayoutPrefetchRegistry)
computeHorizontalScrollExtent
Link copied to clipboard
open override fun computeHorizontalScrollExtent(p0: RecyclerView.State): Int
computeHorizontalScrollOffset
Link copied to clipboard
open override fun computeHorizontalScrollOffset(p0: RecyclerView.State): Int
computeHorizontalScrollRange
Link copied to clipboard
open override fun computeHorizontalScrollRange(p0: RecyclerView.State): Int
computeScrollVectorForPosition
Link copied to clipboard
open override fun computeScrollVectorForPosition(p0: Int): PointF?
computeVerticalScrollExtent
Link copied to clipboard
open override fun computeVerticalScrollExtent(p0: RecyclerView.State): Int
computeVerticalScrollOffset
Link copied to clipboard
open override fun computeVerticalScrollOffset(p0: RecyclerView.State): Int
computeVerticalScrollRange
Link copied to clipboard
open override fun computeVerticalScrollRange(p0: RecyclerView.State): Int
convertFocusDirectionToLayoutDirection
Link copied to clipboard
open fun convertFocusDirectionToLayoutDirection(p0: Int): Int
createLayoutState
Link copied to clipboard
open fun createLayoutState(): LinearLayoutManager.LayoutState
detachAndScrapAttachedViews
Link copied to clipboard
open fun detachAndScrapAttachedViews(@NonNull() p0: RecyclerView.Recycler)
detachAndScrapView
Link copied to clipboard
open fun detachAndScrapView(@NonNull() p0: View, @NonNull() p1: RecyclerView.Recycler)
detachAndScrapViewAt
Link copied to clipboard
open fun detachAndScrapViewAt(p0: Int, @NonNull() p1: RecyclerView.Recycler)
detachView
Link copied to clipboard
open fun detachView(@NonNull() p0: View)
detachViewAt
Link copied to clipboard
open fun detachViewAt(p0: Int)
dispatchAttachedToWindow
Link copied to clipboard
open fun dispatchAttachedToWindow(p0: RecyclerView)
dispatchDetachedFromWindow
Link copied to clipboard
open fun dispatchDetachedFromWindow(p0: RecyclerView, p1: RecyclerView.Recycler)
endAnimation
Link copied to clipboard
open fun endAnimation(p0: View)
ensureLayoutState
Link copied to clipboard
open fun ensureLayoutState()
fill
Link copied to clipboard
open fun fill(p0: RecyclerView.Recycler, p1: LinearLayoutManager.LayoutState, p2: RecyclerView.State, p3: Boolean): Int
findContainingItemView
Link copied to clipboard
open fun findContainingItemView(@NonNull() p0: View): View?
findFirstCompletelyVisibleItemPosition
Link copied to clipboard
open fun findFirstCompletelyVisibleItemPosition(): Int
findFirstVisibleChildClosestToEnd
Link copied to clipboard
open fun findFirstVisibleChildClosestToEnd(p0: Boolean, p1: Boolean): View
findFirstVisibleChildClosestToStart
Link copied to clipboard
open fun findFirstVisibleChildClosestToStart(p0: Boolean, p1: Boolean): View
findFirstVisibleItemPosition
Link copied to clipboard
open fun findFirstVisibleItemPosition(): Int
findLastCompletelyVisibleItemPosition
Link copied to clipboard
open fun findLastCompletelyVisibleItemPosition(): Int
findLastVisibleItemPosition
Link copied to clipboard
open fun findLastVisibleItemPosition(): Int
open fun findOnePartiallyOrCompletelyInvisibleChild(p0: Int, p1: Int): View
findOneVisibleChild
Link copied to clipboard
open fun findOneVisibleChild(p0: Int, p1: Int, p2: Boolean, p3: Boolean): View
findReferenceChild
Link copied to clipboard
open fun findReferenceChild(p0: RecyclerView.Recycler, p1: RecyclerView.State, p2: Int, p3: Int, p4: Int): View
findViewByPosition
Link copied to clipboard
open override fun findViewByPosition(p0: Int): View?
generateDefaultLayoutParams
Link copied to clipboard
open override fun generateDefaultLayoutParams(): RecyclerView.LayoutParams
generateLayoutParams
Link copied to clipboard
open fun generateLayoutParams(p0: Context, p1: AttributeSet): RecyclerView.LayoutParams
getBaseline
Link copied to clipboard
open fun getBaseline(): Int
getBottomDecorationHeight
Link copied to clipboard
open fun getBottomDecorationHeight(@NonNull() p0: View): Int
getChildAt
Link copied to clipboard
open fun getChildAt(p0: Int): View?
getChildCount
Link copied to clipboard
open fun getChildCount(): Int
getClipToPadding
Link copied to clipboard
open fun getClipToPadding(): Boolean
getColumnCountForAccessibility
Link copied to clipboard
open fun getColumnCountForAccessibility(@NonNull() p0: RecyclerView.Recycler, @NonNull() p1: RecyclerView.State): Int
getDecoratedBottom
Link copied to clipboard
open fun getDecoratedBottom(@NonNull() p0: View): Int
getDecoratedBoundsWithMargins
Link copied to clipboard
open fun getDecoratedBoundsWithMargins(@NonNull() p0: View, @NonNull() p1: Rect)
getDecoratedLeft
Link copied to clipboard
open fun getDecoratedLeft(@NonNull() p0: View): Int
getDecoratedMeasuredHeight
Link copied to clipboard
open fun getDecoratedMeasuredHeight(@NonNull() p0: View): Int
getDecoratedMeasuredWidth
Link copied to clipboard
open fun getDecoratedMeasuredWidth(@NonNull() p0: View): Int
getDecoratedRight
Link copied to clipboard
open fun getDecoratedRight(@NonNull() p0: View): Int
getDecoratedTop
Link copied to clipboard
open fun getDecoratedTop(@NonNull() p0: View): Int
getExtraLayoutSpace
Link copied to clipboard
open fun getExtraLayoutSpace(p0: RecyclerView.State): Int
getFocusedChild
Link copied to clipboard
open fun getFocusedChild(): View?
getHeight
Link copied to clipboard
@Px()
open fun getHeight(): Int
getHeightMode
Link copied to clipboard
open fun getHeightMode(): Int
getInitialPrefetchItemCount
Link copied to clipboard
open fun getInitialPrefetchItemCount(): Int
getItemCount
Link copied to clipboard
open fun getItemCount(): Int
getItemViewType
Link copied to clipboard
open fun getItemViewType(@NonNull() p0: View): Int
getLayoutDirection
Link copied to clipboard
open fun getLayoutDirection(): Int
getLeftDecorationWidth
Link copied to clipboard
open fun getLeftDecorationWidth(@NonNull() p0: View): Int
getMinimumHeight
Link copied to clipboard
@Px()
open fun getMinimumHeight(): Int
getMinimumWidth
Link copied to clipboard
@Px()
open fun getMinimumWidth(): Int
getOrientation
Link copied to clipboard
open fun getOrientation(): Int
getPaddingBottom
Link copied to clipboard
@Px()
open fun getPaddingBottom(): Int
getPaddingEnd
Link copied to clipboard
@Px()
open fun getPaddingEnd(): Int
getPaddingLeft
Link copied to clipboard
@Px()
open fun getPaddingLeft(): Int
getPaddingRight
Link copied to clipboard
@Px()
open fun getPaddingRight(): Int
getPaddingStart
Link copied to clipboard
@Px()
open fun getPaddingStart(): Int
getPaddingTop
Link copied to clipboard
@Px()
open fun getPaddingTop(): Int
getPosition
Link copied to clipboard
open fun getPosition(@NonNull() p0: View): Int
getRecycleChildrenOnDetach
Link copied to clipboard
open fun getRecycleChildrenOnDetach(): Boolean
getReverseLayout
Link copied to clipboard
open fun getReverseLayout(): Boolean
getRightDecorationWidth
Link copied to clipboard
open fun getRightDecorationWidth(@NonNull() p0: View): Int
getRowCountForAccessibility
Link copied to clipboard
open fun getRowCountForAccessibility(@NonNull() p0: RecyclerView.Recycler, @NonNull() p1: RecyclerView.State): Int
getSelectionModeForAccessibility
Link copied to clipboard
open fun getSelectionModeForAccessibility(@NonNull() p0: RecyclerView.Recycler, @NonNull() p1: RecyclerView.State): Int
getStackFromEnd
Link copied to clipboard
open fun getStackFromEnd(): Boolean
getTopDecorationHeight
Link copied to clipboard
open fun getTopDecorationHeight(@NonNull() p0: View): Int
getTransformedBoundingBox
Link copied to clipboard
open fun getTransformedBoundingBox(@NonNull() p0: View, p1: Boolean, @NonNull() p2: Rect)
getWidth
Link copied to clipboard
@Px()
open fun getWidth(): Int
getWidthMode
Link copied to clipboard
open fun getWidthMode(): Int
hasFlexibleChildInBothOrientations
Link copied to clipboard
open fun hasFlexibleChildInBothOrientations(): Boolean
hasFocus
Link copied to clipboard
open fun hasFocus(): Boolean
ignoreView
Link copied to clipboard
open fun ignoreView(@NonNull() p0: View)
isAttachedToWindow
Link copied to clipboard
open fun isAttachedToWindow(): Boolean
isAutoMeasureEnabled
Link copied to clipboard
open override fun isAutoMeasureEnabled(): Boolean
isFocused
Link copied to clipboard
open fun isFocused(): Boolean
isItemPrefetchEnabled
Link copied to clipboard
fun isItemPrefetchEnabled(): Boolean
isLayoutHierarchical
Link copied to clipboard
open fun isLayoutHierarchical(@NonNull() p0: RecyclerView.Recycler, @NonNull() p1: RecyclerView.State): Boolean
isLayoutRTL
Link copied to clipboard
open fun isLayoutRTL(): Boolean
isMeasurementCacheEnabled
Link copied to clipboard
open fun isMeasurementCacheEnabled(): Boolean
isSmoothScrollbarEnabled
Link copied to clipboard
open fun isSmoothScrollbarEnabled(): Boolean
isSmoothScrolling
Link copied to clipboard
open fun isSmoothScrolling(): Boolean
isViewPartiallyVisible
Link copied to clipboard
open fun isViewPartiallyVisible(@NonNull() p0: View, p1: Boolean, p2: Boolean): Boolean
layoutChunk
Link copied to clipboard
layoutDecorated
Link copied to clipboard
open fun layoutDecorated(@NonNull() p0: View, p1: Int, p2: Int, p3: Int, p4: Int)
layoutDecoratedWithMargins
Link copied to clipboard
open fun layoutDecoratedWithMargins(@NonNull() p0: View, p1: Int, p2: Int, p3: Int, p4: Int)
measureChild
Link copied to clipboard
open fun measureChild(@NonNull() p0: View, p1: Int, p2: Int)
measureChildWithMargins
Link copied to clipboard
open fun measureChildWithMargins(@NonNull() p0: View, p1: Int, p2: Int)
moveView
Link copied to clipboard
open fun moveView(p0: Int, p1: Int)
offsetChildrenHorizontal
Link copied to clipboard
open fun offsetChildrenHorizontal(@Px() p0: Int)
offsetChildrenVertical
Link copied to clipboard
open fun offsetChildrenVertical(@Px() p0: Int)
onAdapterChanged
Link copied to clipboard
onAddFocusables
Link copied to clipboard
open fun onAddFocusables(@NonNull() p0: RecyclerView, @NonNull() p1: ArrayList<View>, p2: Int, p3: Int): Boolean
onAnchorReady
Link copied to clipboard
open fun onAnchorReady(p0: RecyclerView.Recycler, p1: RecyclerView.State, p2: LinearLayoutManager.AnchorInfo, p3: Int)
onAttachedToWindow
Link copied to clipboard
open fun onAttachedToWindow(p0: RecyclerView)
onDetachedFromWindow
Link copied to clipboard
open fun onDetachedFromWindow(p0: RecyclerView)
open override fun onDetachedFromWindow(p0: RecyclerView, p1: RecyclerView.Recycler)
onFocusSearchFailed
Link copied to clipboard
open override fun onFocusSearchFailed(p0: View, p1: Int, p2: RecyclerView.Recycler, p3: RecyclerView.State): View?
onInitializeAccessibilityEvent
Link copied to clipboard
open override fun onInitializeAccessibilityEvent(p0: AccessibilityEvent)
onInterceptFocusSearch
Link copied to clipboard
open fun onInterceptFocusSearch(@NonNull() p0: View, p1: Int): View?
onItemsAdded
Link copied to clipboard
open fun onItemsAdded(@NonNull() p0: RecyclerView, p1: Int, p2: Int)
onItemsChanged
Link copied to clipboard
open fun onItemsChanged(@NonNull() p0: RecyclerView)
onItemsMoved
Link copied to clipboard
open fun onItemsMoved(@NonNull() p0: RecyclerView, p1: Int, p2: Int, p3: Int)
onItemsRemoved
Link copied to clipboard
open fun onItemsRemoved(@NonNull() p0: RecyclerView, p1: Int, p2: Int)
onItemsUpdated
Link copied to clipboard
open fun onItemsUpdated(@NonNull() p0: RecyclerView, p1: Int, p2: Int)
open fun onItemsUpdated(@NonNull() p0: RecyclerView, p1: Int, p2: Int, @Nullable() p3: Any?)
onLayoutChildren
Link copied to clipboard
open override fun onLayoutChildren(p0: RecyclerView.Recycler, p1: RecyclerView.State)
onLayoutCompleted
Link copied to clipboard
open override fun onLayoutCompleted(p0: RecyclerView.State)
onMeasure
Link copied to clipboard
open fun onMeasure(@NonNull() p0: RecyclerView.Recycler, @NonNull() p1: RecyclerView.State, p2: Int, p3: Int)
onRequestChildFocus
Link copied to clipboard
open fun onRequestChildFocus(@NonNull() p0: RecyclerView, @NonNull() p1: View, @Nullable() p2: View?): Boolean
open fun onRequestChildFocus(@NonNull() p0: RecyclerView, @NonNull() p1: RecyclerView.State, @NonNull() p2: View, @Nullable() p3: View?): Boolean
onRestoreInstanceState
Link copied to clipboard
open override fun onRestoreInstanceState(p0: Parcelable)
onSaveInstanceState
Link copied to clipboard
open override fun onSaveInstanceState(): Parcelable?
onScrollStateChanged
Link copied to clipboard
open fun onScrollStateChanged(p0: Int)
onSmoothScrollerStopped
Link copied to clipboard
open fun onSmoothScrollerStopped(p0: RecyclerView.SmoothScroller)
performAccessibilityAction
Link copied to clipboard
open fun performAccessibilityAction(p0: Int, @Nullable() p1: Bundle?): Boolean
open fun performAccessibilityAction(@NonNull() p0: RecyclerView.Recycler, @NonNull() p1: RecyclerView.State, p2: Int, @Nullable() p3: Bundle?): Boolean
performAccessibilityActionForItem
Link copied to clipboard
open fun performAccessibilityActionForItem(@NonNull() p0: View, p1: Int, @Nullable() p2: Bundle?): Boolean
open fun performAccessibilityActionForItem(@NonNull() p0: RecyclerView.Recycler, @NonNull() p1: RecyclerView.State, @NonNull() p2: View, p3: Int, @Nullable() p4: Bundle?): Boolean
postOnAnimation
Link copied to clipboard
open fun postOnAnimation(p0: Runnable)
prepareForDrop
Link copied to clipboard
open override fun prepareForDrop(@NonNull() p0: View, @NonNull() p1: View, p2: Int, p3: Int)
removeAllViews
Link copied to clipboard
open fun removeAllViews()
removeAndRecycleAllViews
Link copied to clipboard
open fun removeAndRecycleAllViews(@NonNull() p0: RecyclerView.Recycler)
removeAndRecycleScrapInt
Link copied to clipboard
open fun removeAndRecycleScrapInt(p0: RecyclerView.Recycler)
removeAndRecycleView
Link copied to clipboard
open fun removeAndRecycleView(@NonNull() p0: View, @NonNull() p1: RecyclerView.Recycler)
removeAndRecycleViewAt
Link copied to clipboard
open fun removeAndRecycleViewAt(p0: Int, @NonNull() p1: RecyclerView.Recycler)
removeCallbacks
Link copied to clipboard
open fun removeCallbacks(p0: Runnable): Boolean
removeDetachedView
Link copied to clipboard
open fun removeDetachedView(@NonNull() p0: View)
removeView
Link copied to clipboard
open fun removeView(p0: View)
removeViewAt
Link copied to clipboard
open fun removeViewAt(p0: Int)
requestChildRectangleOnScreen
Link copied to clipboard
open fun requestChildRectangleOnScreen(@NonNull() p0: RecyclerView, @NonNull() p1: View, @NonNull() p2: Rect, p3: Boolean): Boolean
open fun requestChildRectangleOnScreen(@NonNull() p0: RecyclerView, @NonNull() p1: View, @NonNull() p2: Rect, p3: Boolean, p4: Boolean): Boolean
requestLayout
Link copied to clipboard
open fun requestLayout()
requestSimpleAnimationsInNextLayout
Link copied to clipboard
open fun requestSimpleAnimationsInNextLayout()
resolveIsInfinite
Link copied to clipboard
open fun resolveIsInfinite(): Boolean
scrollBy
Link copied to clipboard
open fun scrollBy(p0: Int, p1: RecyclerView.Recycler, p2: RecyclerView.State): Int
scrollHorizontallyBy
Link copied to clipboard
open override fun scrollHorizontallyBy(p0: Int, p1: RecyclerView.Recycler, p2: RecyclerView.State): Int
scrollToPosition
Link copied to clipboard
open override fun scrollToPosition(p0: Int)
scrollToPositionWithOffset
Link copied to clipboard
open fun scrollToPositionWithOffset(p0: Int, p1: Int)
scrollVerticallyBy
Link copied to clipboard
open override fun scrollVerticallyBy(p0: Int, p1: RecyclerView.Recycler, p2: RecyclerView.State): Int
setAutoMeasureEnabled
Link copied to clipboard
open fun setAutoMeasureEnabled(p0: Boolean)
setExactMeasureSpecsFrom
Link copied to clipboard
open fun setExactMeasureSpecsFrom(p0: RecyclerView)
setInitialPrefetchItemCount
Link copied to clipboard
open fun setInitialPrefetchItemCount(p0: Int)
setItemPrefetchEnabled
Link copied to clipboard
fun setItemPrefetchEnabled(p0: Boolean)
setMeasuredDimension
Link copied to clipboard
open fun setMeasuredDimension(p0: Int, p1: Int)
open fun setMeasuredDimension(p0: Rect, p1: Int, p2: Int)
setMeasuredDimensionFromChildren
Link copied to clipboard
open fun setMeasuredDimensionFromChildren(p0: Int, p1: Int)
setMeasurementCacheEnabled
Link copied to clipboard
open fun setMeasurementCacheEnabled(p0: Boolean)
setMeasureSpecs
Link copied to clipboard
open fun setMeasureSpecs(p0: Int, p1: Int)
setOrientation
Link copied to clipboard
open fun setOrientation(p0: Int)
setRecycleChildrenOnDetach
Link copied to clipboard
open fun setRecycleChildrenOnDetach(p0: Boolean)
setRecyclerView
Link copied to clipboard
open fun setRecyclerView(p0: RecyclerView)
setReverseLayout
Link copied to clipboard
open fun setReverseLayout(p0: Boolean)
setSmoothScrollbarEnabled
Link copied to clipboard
open fun setSmoothScrollbarEnabled(p0: Boolean)
setStackFromEnd
Link copied to clipboard
open fun setStackFromEnd(p0: Boolean)
shouldMeasureChild
Link copied to clipboard
open fun shouldMeasureChild(p0: View, p1: Int, p2: Int, p3: RecyclerView.LayoutParams): Boolean
shouldMeasureTwice
Link copied to clipboard
open override fun shouldMeasureTwice(): Boolean
shouldReMeasureChild
Link copied to clipboard
open fun shouldReMeasureChild(p0: View, p1: Int, p2: Int, p3: RecyclerView.LayoutParams): Boolean
startSmoothScroll
Link copied to clipboard
open fun startSmoothScroll(p0: RecyclerView.SmoothScroller)
stopIgnoringView
Link copied to clipboard
open fun stopIgnoringView(@NonNull() p0: View)
stopSmoothScroller
Link copied to clipboard
open fun stopSmoothScroller()
supportsPredictiveItemAnimations
Link copied to clipboard
open override fun supportsPredictiveItemAnimations(): Boolean
validateChildOrder
Link copied to clipboard
open fun validateChildOrder()