Searched refs:mAnchorInfo (Results 1 – 3 of 3) sorted by relevance
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | GridLayoutManagerTest.java | 495 glm.mAnchorInfo.mPosition = 11; in testAnchorUpdate() 499 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo); in testAnchorUpdate() 500 assertEquals("gm should keep anchor in first span", 11, glm.mAnchorInfo.mPosition); in testAnchorUpdate() 502 glm.mAnchorInfo.mPosition = 13; in testAnchorUpdate() 503 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo); in testAnchorUpdate() 504 assertEquals("gm should move anchor to first span", 11, glm.mAnchorInfo.mPosition); in testAnchorUpdate() 506 glm.mAnchorInfo.mPosition = 23; in testAnchorUpdate() 507 glm.onAnchorReady(mRecyclerView.mRecycler, state, glm.mAnchorInfo); in testAnchorUpdate() 508 assertEquals("gm should move anchor to first span", 21, glm.mAnchorInfo.mPosition); in testAnchorUpdate() 510 glm.mAnchorInfo.mPosition = 35; in testAnchorUpdate() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | LinearLayoutManager.java | 137 final AnchorInfo mAnchorInfo = new AnchorInfo(); field in LinearLayoutManager 480 mAnchorInfo.reset(); 481 mAnchorInfo.mLayoutFromEnd = mShouldReverseLayout ^ mStackFromEnd; 483 updateAnchorInfoForLayout(recycler, state, mAnchorInfo); 485 Log.d(TAG, "Anchor info:" + mAnchorInfo); 531 onAnchorReady(recycler, state, mAnchorInfo); 534 if (mAnchorInfo.mLayoutFromEnd) { 536 updateLayoutStateToFillStart(mAnchorInfo); 545 updateLayoutStateToFillEnd(mAnchorInfo); 561 updateLayoutStateToFillEnd(mAnchorInfo); [all …]
|
D | StaggeredGridLayoutManager.java | 181 private final AnchorInfo mAnchorInfo = new AnchorInfo(); field in StaggeredGridLayoutManager 552 final AnchorInfo anchorInfo = mAnchorInfo;
|