Home
last modified time | relevance | path

Searched refs:anchorInfo (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DLinearLayoutManager.java722 AnchorInfo anchorInfo) { in updateAnchorInfoForLayout() argument
739 anchorInfo.assignCoordinateFromPadding(); in updateAnchorInfoForLayout()
766 anchorInfo.assignFromView(referenceChild); in updateAnchorFromChildren()
777 anchorInfo.mCoordinate = anchorInfo.mLayoutFromEnd in updateAnchorFromChildren()
807 anchorInfo.mPosition = mPendingScrollPosition;
812 if (anchorInfo.mLayoutFromEnd) {
835 anchorInfo.mLayoutFromEnd = false;
842 anchorInfo.mLayoutFromEnd = true;
845 anchorInfo.mCoordinate = anchorInfo.mLayoutFromEnd
924 updateLayoutStateToFillEnd(anchorInfo.mPosition, anchorInfo.mCoordinate); in updateLayoutStateToFillEnd()
[all …]
H A DGridLayoutManager.java352 AnchorInfo anchorInfo, int itemDirection) { in onAnchorReady() argument
353 super.onAnchorReady(recycler, state, anchorInfo, itemDirection); in onAnchorReady()
356 ensureAnchorIsInCorrectSpan(recycler, state, anchorInfo, itemDirection); in onAnchorReady()
384 RecyclerView.State state, AnchorInfo anchorInfo, int itemDirection) { in ensureAnchorIsInCorrectSpan() argument
387 int span = getSpanIndex(recycler, state, anchorInfo.mPosition); in ensureAnchorIsInCorrectSpan()
390 while (span > 0 && anchorInfo.mPosition > 0) { in ensureAnchorIsInCorrectSpan()
391 anchorInfo.mPosition--; in ensureAnchorIsInCorrectSpan()
392 span = getSpanIndex(recycler, state, anchorInfo.mPosition); in ensureAnchorIsInCorrectSpan()
397 int pos = anchorInfo.mPosition; in ensureAnchorIsInCorrectSpan()
408 anchorInfo.mPosition = pos; in ensureAnchorIsInCorrectSpan()