FileDocCategorySizeDatePackage
GridPaddingTest.javaAPI DocAndroid 5.1 API1567Thu Mar 12 22:22:12 GMT 2015android.widget.gridview

GridPaddingTest

public class GridPaddingTest extends android.test.ActivityInstrumentationTestCase2

Fields Summary
private android.widget.GridView
mGridView
Constructors Summary
public GridPaddingTest()

        super("com.android.frameworks.coretests", GridPadding.class);
    
Methods Summary
protected voidsetUp()

        super.setUp();

        setActivityInitialTouchMode(true);
        mGridView = getActivity().getGridView();
    
public voidtestPreconditions()

        assertNotNull(mGridView);
        assertTrue("Not in touch mode", mGridView.isInTouchMode());
    
public voidtestResurrectSelection()

        sendKeys("DPAD_DOWN");
        assertEquals("The first item should be selected", mGridView.getSelectedItemPosition(), 0);