Searched refs:mAnchorInfo (Results 1 – 3 of 3) sorted by relevance
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | GridLayoutManagerTest.java | 417 glm.mAnchorInfo.mPosition = 11; in anchorUpdate() 421 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo, in anchorUpdate() 423 assertEquals("gm should keep anchor in first span", 11, glm.mAnchorInfo.mPosition); in anchorUpdate() 425 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo, in anchorUpdate() 428 glm.mAnchorInfo.mPosition); in anchorUpdate() 430 glm.mAnchorInfo.mPosition = 5; in anchorUpdate() 431 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo, in anchorUpdate() 434 glm.mAnchorInfo.mPosition); in anchorUpdate() 436 glm.mAnchorInfo.mPosition = 13; in anchorUpdate() 437 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo, in anchorUpdate() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | LinearLayoutManager.java | 137 final AnchorInfo mAnchorInfo = new AnchorInfo(); field in LinearLayoutManager 481 if (!mAnchorInfo.mValid || mPendingScrollPosition != NO_POSITION || 483 mAnchorInfo.reset(); 484 mAnchorInfo.mLayoutFromEnd = mShouldReverseLayout ^ mStackFromEnd; 486 updateAnchorInfoForLayout(recycler, state, mAnchorInfo); 487 mAnchorInfo.mValid = true; 490 Log.d(TAG, "Anchor info:" + mAnchorInfo); 537 if (mAnchorInfo.mLayoutFromEnd) { 545 onAnchorReady(recycler, state, mAnchorInfo, firstLayoutDirection); 549 if (mAnchorInfo.mLayoutFromEnd) { [all …]
|
D | StaggeredGridLayoutManager.java | 196 private final AnchorInfo mAnchorInfo = new AnchorInfo(); field in StaggeredGridLayoutManager 603 final AnchorInfo anchorInfo = mAnchorInfo; 696 mAnchorInfo.reset(); 701 mAnchorInfo.reset(); 712 mAnchorInfo.reset();
|