PivotLayoutManager

A RecyclerView.LayoutManager that builds the layout around a pivot view.

It behaves similarly to GridLayoutManager with the main difference being how focus is handled.

Constructors

Link copied to clipboard
constructor(properties: RecyclerView.LayoutManager.Properties)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int)

Properties

Link copied to clipboard
open val baseline: Int
Link copied to clipboard
open val childCount: Int
Link copied to clipboard
Link copied to clipboard
open val focusedChild: View?
Link copied to clipboard
@get:Px
open val height: Int
Link copied to clipboard
open val heightMode: Int
Link copied to clipboard
Link copied to clipboard
open override var isAutoMeasureEnabled: Boolean
Link copied to clipboard
open val isFocused: Boolean
Link copied to clipboard
Link copied to clipboard
open override val isLayoutReversed: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val itemCount: Int
Link copied to clipboard
Link copied to clipboard
@get:Px
open val minimumHeight: Int
Link copied to clipboard
@get:Px
open val minimumWidth: Int
Link copied to clipboard
@get:Px
open val paddingBottom: Int
Link copied to clipboard
@get:Px
open val paddingEnd: Int
Link copied to clipboard
@get:Px
open val paddingLeft: Int
Link copied to clipboard
@get:Px
open val paddingRight: Int
Link copied to clipboard
@get:Px
open val paddingStart: Int
Link copied to clipboard
@get:Px
open val paddingTop: Int
Link copied to clipboard
@get:Px
open val width: Int
Link copied to clipboard
open val widthMode: Int

Functions

Link copied to clipboard
open fun addDisappearingView(child: View?)
open fun addDisappearingView(child: View?, index: Int)
Link copied to clipboard
open fun addView(child: View?)
open fun addView(child: View?, index: Int)
Link copied to clipboard
open fun assertInLayoutOrScroll(message: String?)
Link copied to clipboard
open fun assertNotInLayoutOrScroll(message: String?)
Link copied to clipboard
open fun attachView(@NonNull child: View)
open fun attachView(@NonNull child: View, index: Int)
open fun attachView(@NonNull child: View, index: Int, lp: RecyclerView.LayoutParams?)
Link copied to clipboard
Link copied to clipboard
open override fun canScrollHorizontally(): Boolean
Link copied to clipboard
open override fun canScrollVertically(): Boolean
Link copied to clipboard
open override fun checkLayoutParams(layoutParams: RecyclerView.LayoutParams?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun collectInitialPrefetchPositions(adapterItemCount: Int, layoutPrefetchRegistry: RecyclerView.LayoutManager.LayoutPrefetchRegistry)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun computeScrollVectorForPosition(targetPosition: Int): PointF?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun detachView(@NonNull child: View)
Link copied to clipboard
open fun detachViewAt(index: Int)
Link copied to clipboard
open fun endAnimation(view: View?)
Link copied to clipboard
Link copied to clipboard
open fun findViewByPosition(position: Int): View?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getChildAt(index: Int): View?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDecoratedBottom(@NonNull child: View): Int
Link copied to clipboard
open fun getDecoratedBoundsWithMargins(@NonNull view: View, @NonNull outBounds: Rect)
Link copied to clipboard
open fun getDecoratedLeft(@NonNull child: View): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDecoratedRight(@NonNull child: View): Int
Link copied to clipboard
open fun getDecoratedTop(@NonNull child: View): Int
Link copied to clipboard
Link copied to clipboard
open fun getItemViewType(@NonNull view: View): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getPosition(@NonNull view: View): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getTransformedBoundingBox(@NonNull child: View, includeDecorInsets: Boolean, @NonNull out: Rect)
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun ignoreView(@NonNull view: View)
Link copied to clipboard
open override fun isAutoMeasureEnabled(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun isLayoutReversed(): Boolean
Link copied to clipboard
open fun isViewPartiallyVisible(@NonNull child: View, completelyVisible: Boolean, acceptEndPointInclusion: Boolean): Boolean
Link copied to clipboard
open fun layoutDecorated(@NonNull child: View, left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun layoutDecoratedWithMargins(@NonNull child: View, left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun measureChild(@NonNull child: View, widthUsed: Int, heightUsed: Int)
Link copied to clipboard
open fun measureChildWithMargins(@NonNull child: View, widthUsed: Int, heightUsed: Int)
Link copied to clipboard
open fun moveView(fromIndex: Int, toIndex: Int)
Link copied to clipboard
Link copied to clipboard
open fun offsetChildrenVertical(@Px dy: Int)
Link copied to clipboard
open override fun onAdapterChanged(oldAdapter: RecyclerView.Adapter<*>?, newAdapter: RecyclerView.Adapter<*>?)
Link copied to clipboard
open override fun onAddFocusables(recyclerView: RecyclerView, views: ArrayList<View>, direction: Int, focusableMode: Int): Boolean
Link copied to clipboard
open override fun onAttachedToWindow(view: RecyclerView)
Link copied to clipboard
Link copied to clipboard
open fun onFocusSearchFailed(@NonNull focused: View, direction: Int, @NonNull recycler: RecyclerView.Recycler, @NonNull state: RecyclerView.State): View?
Link copied to clipboard
open override fun onInterceptFocusSearch(focused: View, direction: Int): View?
Link copied to clipboard
open override fun onItemsAdded(recyclerView: RecyclerView, positionStart: Int, itemCount: Int)
Link copied to clipboard
open override fun onItemsChanged(recyclerView: RecyclerView)
Link copied to clipboard
open override fun onItemsMoved(recyclerView: RecyclerView, from: Int, to: Int, itemCount: Int)
Link copied to clipboard
open override fun onItemsRemoved(recyclerView: RecyclerView, positionStart: Int, itemCount: Int)
Link copied to clipboard
open fun onItemsUpdated(@NonNull recyclerView: RecyclerView, positionStart: Int, itemCount: Int)
open fun onItemsUpdated(@NonNull recyclerView: RecyclerView, positionStart: Int, itemCount: Int, @Nullable payload: Any?)
Link copied to clipboard
open override fun onLayoutChildren(recycler: RecyclerView.Recycler, state: RecyclerView.State)
Link copied to clipboard
open override fun onLayoutCompleted(state: RecyclerView.State)
Link copied to clipboard
open fun onMeasure(@NonNull recycler: RecyclerView.Recycler, @NonNull state: RecyclerView.State, widthSpec: Int, heightSpec: Int)
Link copied to clipboard
open fun onRequestChildFocus(@NonNull parent: RecyclerView, @NonNull child: View, @Nullable focused: View?): Boolean
open override fun onRequestChildFocus(parent: RecyclerView, state: RecyclerView.State, child: View, focused: View?): Boolean
Link copied to clipboard
fun onRequestFocusInDescendants(direction: Int, previouslyFocusedRect: Rect?): Boolean
Link copied to clipboard
open override fun onRestoreInstanceState(state: Parcelable?)
Link copied to clipboard
open override fun onSaveInstanceState(): Parcelable
Link copied to clipboard
open fun onScrollStateChanged(state: Int)
Link copied to clipboard
open override fun performAccessibilityAction(recycler: RecyclerView.Recycler, state: RecyclerView.State, action: Int, args: Bundle?): Boolean
Link copied to clipboard
open fun postOnAnimation(action: Runnable?)
Link copied to clipboard
open override fun prepareForDrop(view: View, target: View, x: Int, y: Int)
Link copied to clipboard
open fun removeAllViews()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeCallbacks(action: Runnable?): Boolean
Link copied to clipboard
open fun removeDetachedView(@NonNull child: View)
Link copied to clipboard
open fun removeView(child: View?)
Link copied to clipboard
open fun removeViewAt(index: Int)
Link copied to clipboard
open fun requestChildRectangleOnScreen(@NonNull parent: RecyclerView, @NonNull child: View, @NonNull rect: Rect, immediate: Boolean, focusedChildVisible: Boolean): Boolean
open override fun requestChildRectangleOnScreen(parent: RecyclerView, child: View, rect: Rect, immediate: Boolean): Boolean
Link copied to clipboard
open fun requestLayout()
Link copied to clipboard
open override fun scrollHorizontallyBy(dx: Int, recycler: RecyclerView.Recycler, state: RecyclerView.State): Int
Link copied to clipboard
open override fun scrollToPosition(position: Int)
Link copied to clipboard
open override fun scrollVerticallyBy(dy: Int, recycler: RecyclerView.Recycler, state: RecyclerView.State): Int
Link copied to clipboard
fun selectPosition(position: Int, subPosition: Int, smooth: Boolean)
Link copied to clipboard
fun selectSubPosition(subPosition: Int, smooth: Boolean)
Link copied to clipboard
Link copied to clipboard
fun setAlignments(parent: ParentAlignment, child: ChildAlignment, smooth: Boolean)
Link copied to clipboard
fun setChildAlignment(alignment: ChildAlignment, smooth: Boolean)
Link copied to clipboard
Link copied to clipboard
fun setFocusOutAllowed(throughFront: Boolean, throughBack: Boolean)
Link copied to clipboard
fun setFocusOutSideAllowed(throughFront: Boolean, throughBack: Boolean)
Link copied to clipboard
fun setFocusSearchDebounceMs(debounceMs: Int?)
Link copied to clipboard
Link copied to clipboard
fun setGravity(gravity: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setMeasuredDimension(widthSize: Int, heightSize: Int)
open fun setMeasuredDimension(childrenBounds: Rect?, wSpec: Int, hSpec: Int)
Link copied to clipboard
fun setOrientation(orientation: Int)
Link copied to clipboard
fun setParentAlignment(alignment: ParentAlignment, smooth: Boolean)
Link copied to clipboard
Link copied to clipboard
fun setReverseLayout(reverseLayout: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setSpanCount(spanCount: Int)
Link copied to clipboard
Link copied to clipboard
open override fun smoothScrollToPosition(recyclerView: RecyclerView, state: RecyclerView.State, position: Int)
Link copied to clipboard
open override fun startSmoothScroll(smoothScroller: RecyclerView.SmoothScroller)
Link copied to clipboard
open fun stopIgnoringView(@NonNull view: View)
Link copied to clipboard