类 HorizontalPageLayoutManager
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.LayoutManager
-
- io.agora.chat.uikit.widget.chatextend.HorizontalPageLayoutManager
-
- 所有已实现的接口:
PageDecorationLastJudge
public class HorizontalPageLayoutManager extends androidx.recyclerview.widget.RecyclerView.LayoutManager implements PageDecorationLastJudge
This LayoutManager provides pagination effects similar to ViewPager+GridView. Refer to:https://blog.csdn.net/Y_sunny_U/article/details/89500464
-
-
构造器概要
构造器 构造器 说明 HorizontalPageLayoutManager(int rows, int columns)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanScrollHorizontally()intcomputeHorizontalScrollExtent(androidx.recyclerview.widget.RecyclerView.State state)intcomputeHorizontalScrollOffset(androidx.recyclerview.widget.RecyclerView.State state)intcomputeHorizontalScrollRange(androidx.recyclerview.widget.RecyclerView.State state)androidx.recyclerview.widget.RecyclerView.LayoutParamsgenerateDefaultLayoutParams()booleanisAutoMeasureEnabled()Returns true using recyclerView for automatic measurementbooleanisLastColumn(int position)Is the last Colum in one row;booleanisLastRow(int index)Is the last row in one pagebooleanisPageLast(int position)voidonDetachedFromWindow(androidx.recyclerview.widget.RecyclerView view, androidx.recyclerview.widget.RecyclerView.Recycler recycler)voidonLayoutChildren(androidx.recyclerview.widget.RecyclerView.Recycler recycler, androidx.recyclerview.widget.RecyclerView.State state)voidonMeasure(androidx.recyclerview.widget.RecyclerView.Recycler recycler, androidx.recyclerview.widget.RecyclerView.State state, int widthSpec, int heightSpec)intscrollHorizontallyBy(int dx, androidx.recyclerview.widget.RecyclerView.Recycler recycler, androidx.recyclerview.widget.RecyclerView.State state)voidsetItemHeight(int height)-
从类继承的方法 androidx.recyclerview.widget.RecyclerView.LayoutManager
addDisappearingView, addDisappearingView, addView, addView, assertInLayoutOrScroll, assertNotInLayoutOrScroll, attachView, attachView, attachView, calculateItemDecorationsForChild, canScrollVertically, checkLayoutParams, chooseSize, collectAdjacentPrefetchPositions, collectInitialPrefetchPositions, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, detachAndScrapAttachedViews, detachAndScrapView, detachAndScrapViewAt, detachView, detachViewAt, endAnimation, findContainingItemView, findViewByPosition, 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, measureChildWithMargins, moveView, offsetChildrenHorizontal, offsetChildrenVertical, onAdapterChanged, onAddFocusables, onAttachedToWindow, onDetachedFromWindow, onFocusSearchFailed, onInitializeAccessibilityEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onInitializeAccessibilityNodeInfoForItem, onInterceptFocusSearch, onItemsAdded, onItemsChanged, onItemsMoved, onItemsRemoved, onItemsUpdated, onItemsUpdated, onLayoutCompleted, onRequestChildFocus, onRequestChildFocus, onRestoreInstanceState, onSaveInstanceState, onScrollStateChanged, performAccessibilityAction, performAccessibilityActionForItem, postOnAnimation, removeAllViews, removeAndRecycleAllViews, removeAndRecycleView, removeAndRecycleViewAt, removeCallbacks, removeDetachedView, removeView, removeViewAt, requestChildRectangleOnScreen, requestChildRectangleOnScreen, requestLayout, requestSimpleAnimationsInNextLayout, scrollToPosition, scrollVerticallyBy, setAutoMeasureEnabled, setItemPrefetchEnabled, setMeasuredDimension, setMeasuredDimension, setMeasurementCacheEnabled, smoothScrollToPosition, startSmoothScroll, stopIgnoringView, supportsPredictiveItemAnimations
-
-
-
-
方法详细资料
-
generateDefaultLayoutParams
public androidx.recyclerview.widget.RecyclerView.LayoutParams generateDefaultLayoutParams()
- 指定者:
generateDefaultLayoutParams在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
setItemHeight
public void setItemHeight(int height)
-
canScrollHorizontally
public boolean canScrollHorizontally()
- 覆盖:
canScrollHorizontally在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
scrollHorizontallyBy
public int scrollHorizontallyBy(int dx, androidx.recyclerview.widget.RecyclerView.Recycler recycler, androidx.recyclerview.widget.RecyclerView.State state)- 覆盖:
scrollHorizontallyBy在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
onMeasure
public void onMeasure(@NonNull androidx.recyclerview.widget.RecyclerView.Recycler recycler, @NonNull androidx.recyclerview.widget.RecyclerView.State state, int widthSpec, int heightSpec)- 覆盖:
onMeasure在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
isAutoMeasureEnabled
public boolean isAutoMeasureEnabled()
Returns true using recyclerView for automatic measurement- 覆盖:
isAutoMeasureEnabled在类中androidx.recyclerview.widget.RecyclerView.LayoutManager- 返回:
-
onLayoutChildren
public void onLayoutChildren(androidx.recyclerview.widget.RecyclerView.Recycler recycler, androidx.recyclerview.widget.RecyclerView.State state)- 覆盖:
onLayoutChildren在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
onDetachedFromWindow
public void onDetachedFromWindow(androidx.recyclerview.widget.RecyclerView view, androidx.recyclerview.widget.RecyclerView.Recycler recycler)- 覆盖:
onDetachedFromWindow在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
isLastRow
public boolean isLastRow(int index)
从接口复制的说明:PageDecorationLastJudgeIs the last row in one page- 指定者:
isLastRow在接口中PageDecorationLastJudge- 返回:
-
isLastColumn
public boolean isLastColumn(int position)
从接口复制的说明:PageDecorationLastJudgeIs the last Colum in one row;- 指定者:
isLastColumn在接口中PageDecorationLastJudge- 返回:
-
isPageLast
public boolean isPageLast(int position)
- 指定者:
isPageLast在接口中PageDecorationLastJudge
-
computeHorizontalScrollRange
public int computeHorizontalScrollRange(androidx.recyclerview.widget.RecyclerView.State state)
- 覆盖:
computeHorizontalScrollRange在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
computeHorizontalScrollOffset
public int computeHorizontalScrollOffset(androidx.recyclerview.widget.RecyclerView.State state)
- 覆盖:
computeHorizontalScrollOffset在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
computeHorizontalScrollExtent
public int computeHorizontalScrollExtent(androidx.recyclerview.widget.RecyclerView.State state)
- 覆盖:
computeHorizontalScrollExtent在类中androidx.recyclerview.widget.RecyclerView.LayoutManager
-
-