Android APIs
public class

StaggeredGridLayoutManagerTest

extends BaseRecyclerViewInstrumentationTest
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ android.test.InstrumentationTestCase
         ↳ android.test.ActivityTestCase
           ↳ android.test.ActivityInstrumentationTestCase2<android.support.v7.widget.TestActivity>
             ↳ android.support.v7.widget.BaseRecyclerViewInstrumentationTest
               ↳ android.support.v7.widget.StaggeredGridLayoutManagerTest

Summary

[Expand]
Inherited Fields
From class android.support.v7.widget.BaseRecyclerViewInstrumentationTest
Public Constructors
StaggeredGridLayoutManagerTest()
Public Methods
void assertRectSetsEqual(String message, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> before, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> after)
void assertRectSetsNotEqual(String message, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> before, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> after)
void consistentRelayoutTest(StaggeredGridLayoutManagerTest.Config config, boolean firstChildMultiSpan)
void customSizeInScrollDirectionTest(StaggeredGridLayoutManagerTest.Config config)
void gapAtTheBeginningOfTheListTest(StaggeredGridLayoutManagerTest.Config config, int deletePosition, int deleteCount)
void gapInTheMiddle(StaggeredGridLayoutManagerTest.Config config)
void getFirstLastChildrenTest(StaggeredGridLayoutManagerTest.Config config, boolean provideArr)
void innerGapHandlingTest(int strategy)
void layoutOrderTest(StaggeredGridLayoutManagerTest.Config config)
void savedStateTest(StaggeredGridLayoutManagerTest.Config config, boolean waitForLayout, StaggeredGridLayoutManagerTest.PostLayoutRunnable postLayoutOperations)
void scrollBackAndPreservePositionsTest(StaggeredGridLayoutManagerTest.Config config, boolean saveRestoreInBetween)
void scrollByTest(StaggeredGridLayoutManagerTest.Config config)
void scrollToPositionTest(StaggeredGridLayoutManagerTest.Config config)
void scrollToPositionWithOffsetTest(StaggeredGridLayoutManagerTest.Config config)
void scrollToPositionWithPredictive(int scrollPosition, int scrollOffset)
void testAccessibilityPositions()
void testAreAllEndsTheSame()
void testAreAllStartsTheSame()
void testConsistentRelayout()
void testCustomHeightInVertical()
void testCustomWidthInHorizontal()
void testFindLastInUnevenDistribution()
void testFullSizeSpans()
void testGapAtTheBeginning()
void testGetFirstLastChildrenTest()
void testGrowLookup()
void testInnerGapHandling()
void testLayoutOrder()
void testMoveGapHandling()
void testPartialSpanInvalidation()
void testRTL()
void testSavedState()
void testScrollBackAndPreservePositions()
void testScrollBy()
void testScrollToPosition()
void testScrollToPositionWithOffset()
void testScrollToPositionWithPredictive()
void testSpanCountChangeOnRestoreSavedState()
void testSpanReassignmentsOnItemChange()
void testTemporaryGapHandling()
void testUpdateAfterFullSpan()
void testUpdateAfterFullSpan2()
void testViewSnapping()
void updateAfterFullSpanGapHandlingTest(int fullSpanIndex)
void viewSnapTest(StaggeredGridLayoutManagerTest.Config config)
Protected Methods
void setUp()
Sets up the fixture, for example, open a network connection.
[Expand]
Inherited Methods
From class android.support.v7.widget.BaseRecyclerViewInstrumentationTest
From class android.test.ActivityInstrumentationTestCase2
From class android.test.ActivityTestCase
From class android.test.InstrumentationTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public StaggeredGridLayoutManagerTest ()

Public Methods

public void assertRectSetsEqual (String message, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> before, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> after)

public void assertRectSetsNotEqual (String message, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> before, Map<BaseRecyclerViewInstrumentationTest.Item, Rect> after)

public void consistentRelayoutTest (StaggeredGridLayoutManagerTest.Config config, boolean firstChildMultiSpan)

Throws
Throwable

public void customSizeInScrollDirectionTest (StaggeredGridLayoutManagerTest.Config config)

Throws
Throwable

public void gapAtTheBeginningOfTheListTest (StaggeredGridLayoutManagerTest.Config config, int deletePosition, int deleteCount)

Throws
Throwable

public void gapInTheMiddle (StaggeredGridLayoutManagerTest.Config config)

Throws
Throwable

public void getFirstLastChildrenTest (StaggeredGridLayoutManagerTest.Config config, boolean provideArr)

Throws
Throwable

public void innerGapHandlingTest (int strategy)

Throws
Throwable

public void layoutOrderTest (StaggeredGridLayoutManagerTest.Config config)

Throws
Throwable

public void savedStateTest (StaggeredGridLayoutManagerTest.Config config, boolean waitForLayout, StaggeredGridLayoutManagerTest.PostLayoutRunnable postLayoutOperations)

Throws
Throwable

public void scrollBackAndPreservePositionsTest (StaggeredGridLayoutManagerTest.Config config, boolean saveRestoreInBetween)

Throws
Throwable

public void scrollByTest (StaggeredGridLayoutManagerTest.Config config)

Throws
Throwable

public void scrollToPositionTest (StaggeredGridLayoutManagerTest.Config config)

Throws
Throwable

public void scrollToPositionWithOffsetTest (StaggeredGridLayoutManagerTest.Config config)

Throws
Throwable

public void scrollToPositionWithPredictive (int scrollPosition, int scrollOffset)

Throws
Throwable

public void testAccessibilityPositions ()

Throws
Throwable

public void testAreAllEndsTheSame ()

Throws
Throwable

public void testAreAllStartsTheSame ()

Throws
Throwable

public void testConsistentRelayout ()

Throws
Throwable

public void testCustomHeightInVertical ()

Throws
Throwable

public void testCustomWidthInHorizontal ()

Throws
Throwable

public void testFindLastInUnevenDistribution ()

Throws
Throwable

public void testFullSizeSpans ()

Throws
Throwable

public void testGapAtTheBeginning ()

Throws
Throwable

public void testGetFirstLastChildrenTest ()

Throws
Throwable

public void testGrowLookup ()

Throws
Throwable

public void testInnerGapHandling ()

Throws
Throwable

public void testLayoutOrder ()

Throws
Throwable

public void testMoveGapHandling ()

Throws
Throwable

public void testPartialSpanInvalidation ()

Throws
Throwable

public void testRTL ()

Throws
Throwable

public void testSavedState ()

Throws
Throwable

public void testScrollBackAndPreservePositions ()

Throws
Throwable

public void testScrollBy ()

Throws
Throwable

public void testScrollToPosition ()

Throws
Throwable

public void testScrollToPositionWithOffset ()

Throws
Throwable

public void testScrollToPositionWithPredictive ()

Throws
Throwable

public void testSpanCountChangeOnRestoreSavedState ()

Throws
Throwable

public void testSpanReassignmentsOnItemChange ()

Throws
Throwable

public void testTemporaryGapHandling ()

Throws
Throwable

public void testUpdateAfterFullSpan ()

Throws
Throwable

public void testUpdateAfterFullSpan2 ()

Throws
Throwable

public void testViewSnapping ()

Throws
Throwable

public void updateAfterFullSpanGapHandlingTest (int fullSpanIndex)

Throws
Throwable

public void viewSnapTest (StaggeredGridLayoutManagerTest.Config config)

Throws
Throwable

Protected Methods

protected void setUp ()

Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Throws
Exception