Searched refs:anchorInfo (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearLayoutManager.java | 664 AnchorInfo anchorInfo, int firstLayoutItemDirection) { in onAnchorReady() argument 726 AnchorInfo anchorInfo) { in updateAnchorInfoForLayout() argument 727 if (updateAnchorFromPendingData(state, anchorInfo)) { in updateAnchorInfoForLayout() 734 if (updateAnchorFromChildren(recycler, state, anchorInfo)) { in updateAnchorInfoForLayout() 743 anchorInfo.assignCoordinateFromPadding(); in updateAnchorInfoForLayout() 744 anchorInfo.mPosition = mStackFromEnd ? state.getItemCount() - 1 : 0; in updateAnchorInfoForLayout() 754 RecyclerView.State state, AnchorInfo anchorInfo) { in updateAnchorFromChildren() argument 759 if (focused != null && anchorInfo.isViewValidAsAnchor(focused, state)) { in updateAnchorFromChildren() 760 anchorInfo.assignFromViewAndKeepVisibleRect(focused); in updateAnchorFromChildren() 766 View referenceChild = anchorInfo.mLayoutFromEnd in updateAnchorFromChildren() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | LinearLayoutManager.java | 668 AnchorInfo anchorInfo, int firstLayoutItemDirection) { in onAnchorReady() argument 731 AnchorInfo anchorInfo) { in updateAnchorInfoForLayout() argument 732 if (updateAnchorFromPendingData(state, anchorInfo)) { in updateAnchorInfoForLayout() 739 if (updateAnchorFromChildren(recycler, state, anchorInfo)) { in updateAnchorInfoForLayout() 748 anchorInfo.assignCoordinateFromPadding(); in updateAnchorInfoForLayout() 749 anchorInfo.mPosition = mStackFromEnd ? state.getItemCount() - 1 : 0; in updateAnchorInfoForLayout() 759 RecyclerView.State state, AnchorInfo anchorInfo) { in updateAnchorFromChildren() argument 764 if (focused != null && anchorInfo.isViewValidAsAnchor(focused, state)) { in updateAnchorFromChildren() 765 anchorInfo.assignFromViewAndKeepVisibleRect(focused); in updateAnchorFromChildren() 771 View referenceChild = anchorInfo.mLayoutFromEnd in updateAnchorFromChildren() [all …]
|
D | StaggeredGridLayoutManager.java | 610 final AnchorInfo anchorInfo = mAnchorInfo; 614 anchorInfo.reset(); 619 boolean recalculateAnchor = !anchorInfo.mValid || mPendingScrollPosition != NO_POSITION 622 anchorInfo.reset(); 624 applyPendingSavedState(anchorInfo); 627 anchorInfo.mLayoutFromEnd = mShouldReverseLayout; 629 updateAnchorInfoForLayout(state, anchorInfo); 630 anchorInfo.mValid = true; 633 if (anchorInfo.mLayoutFromEnd != mLastLayoutFromEnd 636 anchorInfo.mInvalidateOffsets = true; [all …]
|
D | GridLayoutManager.java | 353 AnchorInfo anchorInfo, int itemDirection) { in onAnchorReady() argument 354 super.onAnchorReady(recycler, state, anchorInfo, itemDirection); in onAnchorReady() 357 ensureAnchorIsInCorrectSpan(recycler, state, anchorInfo, itemDirection); in onAnchorReady() 385 RecyclerView.State state, AnchorInfo anchorInfo, int itemDirection) { in ensureAnchorIsInCorrectSpan() argument 388 int span = getSpanIndex(recycler, state, anchorInfo.mPosition); in ensureAnchorIsInCorrectSpan() 391 while (span > 0 && anchorInfo.mPosition > 0) { in ensureAnchorIsInCorrectSpan() 392 anchorInfo.mPosition--; in ensureAnchorIsInCorrectSpan() 393 span = getSpanIndex(recycler, state, anchorInfo.mPosition); in ensureAnchorIsInCorrectSpan() 398 int pos = anchorInfo.mPosition; in ensureAnchorIsInCorrectSpan() 409 anchorInfo.mPosition = pos; in ensureAnchorIsInCorrectSpan()
|