super("com.android.frameworktest", ListItemFocusableAboveUnfocusable.class);
super.setUp(); mListView = getActivity().getListView();
sendKeys(KeyEvent.KEYCODE_DPAD_DOWN); assertFalse("focused item should have lost focus", mListView.getChildAt(0).isFocused()); assertEquals("selected position", 1, mListView.getSelectedItemPosition());
assertEquals("selected position", 0, mListView.getSelectedItemPosition()); assertTrue(mListView.getChildAt(0).isFocused()); assertFalse(mListView.getChildAt(1).isFocusable());