public class CellLayoutManager
extends androidx.recyclerview.widget.LinearLayoutManager
| Constructor and Description |
|---|
CellLayoutManager(android.content.Context context,
ITableView tableView) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCachedWidths()
Clears the widths which have been calculated and reused.
|
void |
fitWidthSize(boolean scrollingUp)
This method helps to fit all columns which are displayed on screen.
|
void |
fitWidthSize(int position,
boolean scrollingLeft)
This method helps to fit a column.
|
void |
fitWidthSize2(boolean scrollingLeft)
Alternative method of fitWidthSize().
|
void |
fitWidthSize2(int position,
boolean scrollingLeft)
Alternative method of fitWidthSize().
|
int |
getCacheWidth(int row,
int column) |
AbstractViewHolder |
getCellViewHolder(int xPosition,
int yPosition) |
CellRecyclerView[] |
getVisibleCellRowRecyclerViews() |
AbstractViewHolder[] |
getVisibleCellViewsByColumnPosition(int xPosition) |
void |
measureChildWithMargins(android.view.View child,
int widthUsed,
int heightUsed) |
void |
onAttachedToWindow(androidx.recyclerview.widget.RecyclerView view) |
void |
onScrollStateChanged(int state) |
void |
remeasureAllChild() |
int |
scrollVerticallyBy(int dy,
androidx.recyclerview.widget.RecyclerView.Recycler recycler,
androidx.recyclerview.widget.RecyclerView.State state) |
void |
setCacheWidth(int column,
int width)
Allows to set cache width value for all cell items that is located on column position.
|
void |
setCacheWidth(int row,
int column,
int width)
Allows to set cache width value for single cell item.
|
boolean |
shouldFitColumns(int yPosition) |
assertNotInLayoutOrScroll, calculateExtraLayoutSpace, canScrollHorizontally, canScrollVertically, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScrollVectorForPosition, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, findFirstCompletelyVisibleItemPosition, findFirstVisibleItemPosition, findLastCompletelyVisibleItemPosition, findLastVisibleItemPosition, findViewByPosition, generateDefaultLayoutParams, getExtraLayoutSpace, getInitialPrefetchItemCount, getOrientation, getRecycleChildrenOnDetach, getReverseLayout, getStackFromEnd, isAutoMeasureEnabled, isLayoutRTL, isSmoothScrollbarEnabled, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onLayoutChildren, onLayoutCompleted, onRestoreInstanceState, onSaveInstanceState, prepareForDrop, scrollHorizontallyBy, scrollToPosition, scrollToPositionWithOffset, setInitialPrefetchItemCount, setOrientation, setRecycleChildrenOnDetach, setReverseLayout, setSmoothScrollbarEnabled, setStackFromEnd, smoothScrollToPosition, supportsPredictiveItemAnimationsaddDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, checkLayoutParams, chooseSize, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, endAnimation, findContainingItemView, generateLayoutParams, generateLayoutParams, getBaseline, getBottomDecorationHeight, getChildAt, getChildCount, getChildMeasureSpec, 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, moveView, offsetChildrenHorizontal, offsetChildrenVertical, onAdapterChanged, onAddFocusables, onDetachedFromWindow, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onInitializeAccessibilityNodeInfoForItem, onInterceptFocusSearch, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onItemsUpdated, onMeasure, onRequestChildFocus, onRequestChildFocus, performAccessibilityAction, performAccessibilityActionForItem, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, setAutoMeasureEnabled, setItemPrefetchEnabled, setMeasuredDimension, setMeasuredDimension, setMeasurementCacheEnabled, startSmoothScroll, stopIgnoringViewpublic CellLayoutManager(@NonNull
android.content.Context context,
@NonNull
ITableView tableView)
public void onAttachedToWindow(androidx.recyclerview.widget.RecyclerView view)
onAttachedToWindow in class androidx.recyclerview.widget.RecyclerView.LayoutManagerpublic int scrollVerticallyBy(int dy,
androidx.recyclerview.widget.RecyclerView.Recycler recycler,
androidx.recyclerview.widget.RecyclerView.State state)
scrollVerticallyBy in class androidx.recyclerview.widget.LinearLayoutManagerpublic void onScrollStateChanged(int state)
onScrollStateChanged in class androidx.recyclerview.widget.RecyclerView.LayoutManagerpublic void fitWidthSize(boolean scrollingUp)
public void fitWidthSize(int position,
boolean scrollingLeft)
public void fitWidthSize2(boolean scrollingLeft)
public void fitWidthSize2(int position,
boolean scrollingLeft)
public boolean shouldFitColumns(int yPosition)
public void measureChildWithMargins(@NonNull
android.view.View child,
int widthUsed,
int heightUsed)
measureChildWithMargins in class androidx.recyclerview.widget.RecyclerView.LayoutManager@NonNull public AbstractViewHolder[] getVisibleCellViewsByColumnPosition(int xPosition)
@Nullable public AbstractViewHolder getCellViewHolder(int xPosition, int yPosition)
public void remeasureAllChild()
public void setCacheWidth(int row,
int column,
int width)
public void setCacheWidth(int column,
int width)
public int getCacheWidth(int row,
int column)
public void clearCachedWidths()
@NonNull public CellRecyclerView[] getVisibleCellRowRecyclerViews()