Searched refs:anchorInfo (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearLayoutManager.java | 660 AnchorInfo anchorInfo, int firstLayoutItemDirection) { in onAnchorReady() argument 722 AnchorInfo anchorInfo) { in updateAnchorInfoForLayout() argument 723 if (updateAnchorFromPendingData(state, anchorInfo)) { in updateAnchorInfoForLayout() 730 if (updateAnchorFromChildren(recycler, state, anchorInfo)) { in updateAnchorInfoForLayout() 739 anchorInfo.assignCoordinateFromPadding(); in updateAnchorInfoForLayout() 740 anchorInfo.mPosition = mStackFromEnd ? state.getItemCount() - 1 : 0; in updateAnchorInfoForLayout() 750 RecyclerView.State state, AnchorInfo anchorInfo) { in updateAnchorFromChildren() argument 755 if (focused != null && anchorInfo.isViewValidAsAnchor(focused, state)) { in updateAnchorFromChildren() 756 anchorInfo.assignFromViewAndKeepVisibleRect(focused); in updateAnchorFromChildren() 762 View referenceChild = anchorInfo.mLayoutFromEnd in updateAnchorFromChildren() [all …]
|
D | GridLayoutManager.java | 352 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()
|