-
- All Implemented Interfaces:
-
androidx.recyclerview.widget.ItemTouchHelper.ViewDropHandler,androidx.recyclerview.widget.RecyclerView.SmoothScroller.ScrollVectorProvider
public class PickerLayoutManager extends LinearLayoutManager
Created by adityagohad on 06/06/17.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePickerLayoutManager.onScrollStopListener
-
Field Summary
Fields Modifier and Type Field Description private floatscaleDownByprivate floatscaleDownDistanceprivate booleanchangeAlphaprivate PickerLayoutManager.onScrollStopListeneronScrollStopListener
-
Constructor Summary
Constructors Constructor Description PickerLayoutManager(Context context, int orientation, boolean reverseLayout)
-
Method Summary
Modifier and Type Method Description floatgetScaleDownBy()voidsetScaleDownBy(float scaleDownBy)floatgetScaleDownDistance()voidsetScaleDownDistance(float scaleDownDistance)voidsetChangeAlpha(boolean changeAlpha)voidsetOnScrollStopListener(PickerLayoutManager.onScrollStopListener onScrollStopListener)voidonLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state)intscrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, RecyclerView.State state)voidonScrollStateChanged(int state)booleanisChangeAlpha()-
Methods inherited from class androidx.recyclerview.widget.LinearLayoutManager
assertNotInLayoutOrScroll, canScrollHorizontally, canScrollVertically, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScrollVectorForPosition, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, findFirstCompletelyVisibleItemPosition, findFirstVisibleItemPosition, findLastCompletelyVisibleItemPosition, findLastVisibleItemPosition, findViewByPosition, generateDefaultLayoutParams, getInitialPrefetchItemCount, getOrientation, getRecycleChildrenOnDetach, getReverseLayout, getStackFromEnd, isAutoMeasureEnabled, isSmoothScrollbarEnabled, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onLayoutCompleted, onRestoreInstanceState, onSaveInstanceState, prepareForDrop, scrollToPosition, scrollToPositionWithOffset, scrollVerticallyBy, setInitialPrefetchItemCount, setOrientation, setRecycleChildrenOnDetach, setReverseLayout, setSmoothScrollbarEnabled, setStackFromEnd, smoothScrollToPosition, supportsPredictiveItemAnimations -
Methods inherited from class androidx.recyclerview.widget.RecyclerView.LayoutManager
addDisappearingView, addView, assertInLayoutOrScroll, attachView, calculateItemDecorationsForChild, checkLayoutParams, chooseSize, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, endAnimation, findContainingItemView, 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, isFocused, isItemPrefetchEnabled, isLayoutHierarchical, isMeasurementCacheEnabled, isSmoothScrolling, isViewPartiallyVisible, layoutDecorated, layoutDecoratedWithMargins, measureChild, measureChildWithMargins, moveView, offsetChildrenHorizontal, offsetChildrenVertical, onAdapterChanged, onAddFocusables, onAttachedToWindow, onInterceptFocusSearch, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onMeasure, onRequestChildFocus, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setItemPrefetchEnabled, setMeasuredDimension, setMeasurementCacheEnabled, startSmoothScroll, stopIgnoringView -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PickerLayoutManager
PickerLayoutManager(Context context, int orientation, boolean reverseLayout)
-
-
Method Detail
-
getScaleDownBy
float getScaleDownBy()
-
setScaleDownBy
void setScaleDownBy(float scaleDownBy)
-
getScaleDownDistance
float getScaleDownDistance()
-
setScaleDownDistance
void setScaleDownDistance(float scaleDownDistance)
-
setChangeAlpha
void setChangeAlpha(boolean changeAlpha)
-
setOnScrollStopListener
void setOnScrollStopListener(PickerLayoutManager.onScrollStopListener onScrollStopListener)
-
onLayoutChildren
void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state)
-
scrollHorizontallyBy
int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler, RecyclerView.State state)
-
onScrollStateChanged
void onScrollStateChanged(int state)
-
isChangeAlpha
boolean isChangeAlpha()
-
-
-
-