super("com.android.frameworktest", GridPadding.class);
super.setUp(); setActivityInitialTouchMode(true); mGridView = getActivity().getGridView();
assertNotNull(mGridView); assertTrue("Not in touch mode", mGridView.isInTouchMode());
sendKeys("DPAD_DOWN"); assertEquals("The first item should be selected", mGridView.getSelectedItemPosition(), 0);