-
- All Implemented Interfaces:
-
androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
public class CardStackLayoutManager extends RecyclerView.LayoutManager implements RecyclerView.SmoothScroller.ScrollVectorProvider
-
-
Constructor Summary
Constructors Constructor Description CardStackLayoutManager(Context context)CardStackLayoutManager(Context context, CardStackListener listener)
-
Method Summary
-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager
addDisappearingView, addView, assertInLayoutOrScroll, assertNotInLayoutOrScroll, attachView, calculateItemDecorationsForChild, checkLayoutParams, chooseSize, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, endAnimation, findContainingItemView, findViewByPosition, generateLayoutParams, getBaseline, getBottomDecorationHeight, getChildAt, getChildCount, getChildMeasureSpec, getClipToPadding, getColumnCountForAccessibility, getDecoratedBottom, getDecoratedBoundsWithMargins, getDecoratedLeft, getDecoratedMeasuredHeight, getDecoratedMeasuredWidth, getDecoratedRight, getDecoratedTop, getFocusedChild, getHeight, getHeightMode, getItemCount, getItemViewType, getLayoutDirection, getLeftDecorationWidth, getMinimumHeight, getMinimumWidth, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getPosition, getProperties, getRightDecorationWidth, getRowCountForAccessibility, getSelectionModeForAccessibility, getTopDecorationHeight, getTransformedBoundingBox, getWidth, getWidthMode, hasFocus, ignoreView, isAttachedToWindow, isAutoMeasureEnabled, isFocused, isItemPrefetchEnabled, isLayoutHierarchical, isMeasurementCacheEnabled, isSmoothScrolling, isViewPartiallyVisible, layoutDecorated, layoutDecoratedWithMargins, measureChild, measureChildWithMargins, moveView, offsetChildrenHorizontal, offsetChildrenVertical, onAdapterChanged, onAddFocusables, onAttachedToWindow, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onInterceptFocusSearch, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onLayoutCompleted, onMeasure, onRequestChildFocus, onRestoreInstanceState, onSaveInstanceState, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setItemPrefetchEnabled, setMeasuredDimension, setMeasurementCacheEnabled, startSmoothScroll, stopIgnoringView, supportsPredictiveItemAnimations -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CardStackLayoutManager
CardStackLayoutManager(Context context)
-
CardStackLayoutManager
CardStackLayoutManager(Context context, CardStackListener listener)
-
-
Method Detail
-
generateDefaultLayoutParams
RecyclerView.LayoutParams generateDefaultLayoutParams()
-
onLayoutChildren
void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State s)
-
canScrollHorizontally
boolean canScrollHorizontally()
-
canScrollVertically
boolean canScrollVertically()
-
scrollHorizontallyBy
int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, RecyclerView.State s)
-
scrollVerticallyBy
int scrollVerticallyBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State s)
-
onScrollStateChanged
void onScrollStateChanged(int s)
-
computeScrollVectorForPosition
PointF computeScrollVectorForPosition(int targetPosition)
-
scrollToPosition
void scrollToPosition(int position)
-
smoothScrollToPosition
void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State s, int position)
-
getCardStackSetting
@NonNull() CardStackSetting getCardStackSetting()
-
getCardStackState
@NonNull() CardStackState getCardStackState()
-
getCardStackListener
@NonNull() CardStackListener getCardStackListener()
-
getTopView
View getTopView()
-
getTopPosition
int getTopPosition()
-
setTopPosition
void setTopPosition(int topPosition)
-
setStackFrom
void setStackFrom(@NonNull() StackFrom stackFrom)
-
setVisibleCount
void setVisibleCount(@IntRange(from = 1) int visibleCount)
-
setTranslationInterval
void setTranslationInterval(@FloatRange(from = 0.0f) float translationInterval)
-
setScaleInterval
void setScaleInterval(@FloatRange(from = 0.0f) float scaleInterval)
-
setSwipeThreshold
void setSwipeThreshold(@FloatRange(from = 0.0f, to = 1.0f) float swipeThreshold)
-
setMaxDegree
void setMaxDegree(@FloatRange(from = -360.0f, to = 360.0f) float maxDegree)
-
setDirections
void setDirections(@NonNull() List<Direction> directions)
-
setCanScrollHorizontal
void setCanScrollHorizontal(boolean canScrollHorizontal)
-
setCanScrollVertical
void setCanScrollVertical(boolean canScrollVertical)
-
setSwipeableMethod
void setSwipeableMethod(SwipeableMethod swipeableMethod)
-
setSwipeAnimationSetting
void setSwipeAnimationSetting(@NonNull() SwipeAnimationSetting swipeAnimationSetting)
-
setRewindAnimationSetting
void setRewindAnimationSetting(@NonNull() RewindAnimationSetting rewindAnimationSetting)
-
setOverlayInterpolator
void setOverlayInterpolator(@NonNull() Interpolator overlayInterpolator)
-
-
-
-